Skip to content

Commit d71184b

Browse files
committed
Update README to show ES module imports
1 parent 3c1651a commit d71184b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ The ["Klokantech Noto Sans"](https://github.com/klokantech/klokantech-gl-fonts)
99
## Usage
1010

1111
```js
12-
var parseFont = require('mapbox-to-css-font');
12+
import parseFont = from 'mapbox-to-css-font';
13+
1314
parseFont('Open Sans Regular', 16, 1.2);
1415
// returns 'normal 400 16px/1.2 "Open Sans"'
1516
```

0 commit comments

Comments
 (0)