comment-json
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"name": "comment-json", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Parse and stringify JSON with comments. It will retain comments even after saved!", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -86,3 +86,3 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-comment-json.svg?branch=master)](https://travis-ci.org/kaelzhang/node-comment-json) | ||
#### Sort keys | ||
### Sort keys | ||
@@ -99,4 +99,4 @@ It is a common use case to sort the keys of a JSON file | ||
// Assign the properties including comments from `parsed` to the new object `{}` | ||
// according to the sequance of the given keys | ||
// Copy the properties including comments from `parsed` to the new object `{}` | ||
// according to the sequence of the given keys | ||
const sorted = assign( | ||
@@ -118,2 +118,4 @@ {}, | ||
For details about `assign`, see [here](#assigntarget-object-source-object-keys-array). | ||
## parse() | ||
@@ -120,0 +122,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42257
538