pastgift / sorted-json-js Goto Github PK
View Code? Open in Web Editor NEWa sorting-keys-versiong for `JSON.stringify`
License: MIT License
a sorting-keys-versiong for `JSON.stringify`
License: MIT License
Hi,
As per the issue title the instructions in readme.md and code do not align. Option listed as 'sortBy' in the instructions but reference in code 'sortby'.
Cheers,
Brendt
As long as it does, please say so upfront in its readme, and maybe even suggest to try json.sortify
if one needs those options.
Example has wrong require:
var sortedJSON = require('./sorted-json');
it should be require('sorted-json');
since you should have installed it already.
While using this function, I ran into the following error when passing nothing into options
This wasn't happening when I was on node 8 but does now appear on node 10
I think you can change
sortBy: null
to
sortBy: undefinded
in DEFAULT_SORT_OPTIONS to fix this, but figured it would be something you want to be aware of
:-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.