Skip to content

Commit

Permalink
Improve usage example in readme (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
papb and sindresorhus committed Mar 12, 2021
1 parent ea016e0 commit 8fb3824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Expand Up @@ -19,6 +19,8 @@ It will replace single-line comments `//` and multi-line comments `/**\/` with w
@example
```
import stripJsonComments = require('strip-json-comments');
const json = `{
// Rainbows
"unicorn": "cake"
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Expand Up @@ -24,6 +24,8 @@ $ npm install strip-json-comments
## Usage

```js
const stripJsonComments = require('strip-json-comments');

const json = `{
// Rainbows
"unicorn": /* ❤ */ "cake"
Expand Down

0 comments on commit 8fb3824

Please sign in to comment.