-
-
Couldn't load subscription status.
- Fork 18
Update README.md #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| var stringify = require('json-stable-stringify') | ||
| ``` | ||
|
|
||
| Es6 example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Es6 example: | |
| ESM example: |
|
|
||
| CommonJS example: | ||
| ``` js | ||
| var stringify = require('json-stable-stringify') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| var stringify = require('json-stable-stringify') | |
| const stringify = require('json-stable-stringify'); |
|
|
||
| Es6 example: | ||
| ``` js | ||
| import stringify from 'json-stable-stringify' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import stringify from 'json-stable-stringify' | |
| import stringify from 'json-stable-stringify'; |
| npm install json-stable-stringify | ||
| ``` | ||
|
|
||
| CommonJS example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| CommonJS example: | |
| CJS example: |
Added an es6 import example
moved these examples to a better location (in the install section)