New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

good-sort-json

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good-sort-json - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

6

index.js

@@ -1,3 +0,5 @@

module.exports = function (jsobject) {
return JSON.stringify(sort(jsobject), null, 2);
module.exports = function (jsobject, options) {
if (!options) options = {};
const spaces = options.spaces || 2;
return JSON.stringify(sort(jsobject), null, spaces);
};

@@ -4,0 +6,0 @@

{
"name": "good-sort-json",
"version": "0.1.2",
"version": "0.2.0",
"description": "Sort json the good way",

@@ -5,0 +5,0 @@ "main": "index.js",

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