Skip to content

Commit

Permalink
Merge pull request #21 from openlayers/readme
Browse files Browse the repository at this point in the history
Update README to show ES module imports
  • Loading branch information
ahocevar authored Jul 17, 2024
2 parents 3c1651a + d71184b commit 9caf43c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ The ["Klokantech Noto Sans"](https://github.com/klokantech/klokantech-gl-fonts)
## Usage

```js
var parseFont = require('mapbox-to-css-font');
import parseFont = from 'mapbox-to-css-font';

parseFont('Open Sans Regular', 16, 1.2);
// returns 'normal 400 16px/1.2 "Open Sans"'
```
Expand Down

0 comments on commit 9caf43c

Please sign in to comment.