Skip to content

Commit

Permalink
docs(README): tweak useage
Browse files Browse the repository at this point in the history
  • Loading branch information
伍程凯 committed Jul 11, 2018
1 parent f8ec34b commit 75d05a3
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 @@ -20,12 +20,13 @@ $ npm i sewing
In TypeScript/ESM:
```js
import sewing from 'sewing'
import isEmpty from 'sewing/dist/isEmpty'
```

In Node.js:
```js
// You can't require whole library, it contains browser env code.
const isEmpty = require('sewing/isEmpty')
const isEmpty = require('sewing/libs/isEmpty')
```

### Examples
Expand Down

0 comments on commit 75d05a3

Please sign in to comment.