mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Updated Readme upon the changes to typings
This commit is contained in:
parent
93e1ff52aa
commit
35814130fd
@ -23,9 +23,9 @@ The upcoming 2.0 version has drastically changed API. All available methods can
|
|||||||
First of all, require the library. This is a UMD Module, so it will work for AMD, Typescript and CommonJS module systems.
|
First of all, require the library. This is a UMD Module, so it will work for AMD, Typescript and CommonJS module systems.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const Bowser = require('bowser'); // CommonJS
|
const Bowser = require("bowser"); // CommonJS
|
||||||
|
|
||||||
import Bowser = require('bowser'); // Typescript
|
import * as Bowser from "bowser" // Typescript
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, the exported version is the *ES5 transpiled version*, which **do not** include any polyfills.
|
By default, the exported version is the *ES5 transpiled version*, which **do not** include any polyfills.
|
||||||
|
Loading…
Reference in New Issue
Block a user