nickyout / fast-stable-stringify Goto Github PK
View Code? Open in Web Editor NEWFast deterministic JSON.stringify()
License: MIT License
Fast deterministic JSON.stringify()
License: MIT License
I've noticed commas ,
are sometimes left off when an object contains properties objects, and/or those properties, have objectives as properties. Aka objects that have objects as their values
Is it intentional to leave off the ,
from some key values? Or is this indeed a bug / edge case to patch?
Hi, you are currently under a GPL-3 license, which is perfectly fine for me, personally.
But for a developer in a corporate environment, that license is a problem for me.
Would it be possible to change the license over to something without a hard copyleft, like MIT...
Hi,
I'd like to give this a whirl in an Ember project I am working on, but I am having problems with it.
I don't think I can use:
var stringify = require('fast-stable-stringify');
since that just throws an error. I've added the package to my package.json so that it gets included in the project but I don't seem to be able to execute the stringify function. I've tried using simpleStableStringify({}) but that also fails.
I'm sure I'm missing something simple...but this is setup differently to anything I have used so far. Can you offer any suggestion?
Thanks,
ian
Trying to
const stringify = require('fast-stable-stringify')
stringify(new Date())
// got "{}"
// expect "2017-09-13T16:24:13.631Z"
Just found that
Unlike substack's, it does:
not check for .toJSON() methods on objects
Any way to enable this?
The git repo hasn't the 0.1.1 tag.
Thank you.
It would help understand what's at stake.
...
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.