Socket
Socket
Sign inDemoInstall

comment-json

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comment-json - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc