Comments (6)
The code of js stringify is 10 lines and I referenced it already, I’d check that out if you want to know more about it since I didn’t write it. Once again, based on the code review I did for you, that library is mainly JSON stringify with support for dates while this library is designed to stringify any JavaScript for execution later (e.g. generate code from runtime objects).
from javascript-stringify.
Please take some time to do reviews for yourself instead of putting the burden on an OSS maintainer to run comparisons for you. That said, if you look at https://github.com/pugjs/js-stringify/blob/master/index.js all it is is a slightly modified JSON stringify. Compared to the goal of this module which is to stringify the entire JavaScript object representation so it can be evaluated at a later date.
from javascript-stringify.
Can the result of js-stringify not be evaluated at a later date? The purpose of a readme is to describe why the package is useful, not just how it's used.
from javascript-stringify.
What didn’t you understand from the README? If you don’t feel it’s good enough, submit a PR. I looked at the code for the library you asked me to compare because it’s README had no examples of what it did so I couldn’t compare it.
from javascript-stringify.
that library is mainly JSON stringify with support for dates
JSON.stringify
with support for Date
, undefined
and a bunch of Unicode characters that I'm not familiar with.
You could choose to improve your readme by explaining more about how it differs from JSON.stringify
from javascript-stringify.
Feel free to submit a PR. I would have expected looking at the examples in the README would have provided you all the differences to JSON stringify but I’ll keep it in mind.
from javascript-stringify.
Related Issues (18)
- Properly escape control characters HOT 1
- cannot stringify function with object literal shorthand syntax HOT 2
- Support for async function? HOT 3
- Feature idea: serialize from required CJS modules HOT 8
- Add support for getters & setters in objects
- Replacer doesn't work for nested values HOT 3
- Add support for dangling commas HOT 7
- stringifying an error is funny HOT 1
- Stringify does not JSON stringify HOT 1
- Repeated references in Maps & Sets produce broken output HOT 3
- Support for Deno? HOT 2
- non-enumerable properties HOT 1
- Handle different error types
- TypeError: Cannot read property 'split' of undefined HOT 2
- allow identifier when maxDepth/maxValues is hit HOT 1
- javascript-parse (create object from string generated with javascript-stringify) HOT 3
- Restore properties on a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-stringify.