e-jsondeprecated

EJSON - Extended and Extensible JSON library from Meteor made compatible for Primus

Usage no npm install needed!

<script type="module">
  import eJson from 'https://cdn.skypack.dev/e-json';
</script>

README

e-json, because EJSON was already taken in npm

Build Status NPM version

e-json is Meteor EJSON parser made compatible for Node.js and regular browser clients. This allows use for real-time systems such as Primus.

The API is exactly the same as the API that Meteor provides as it uses exactly the same code. The most important API's are:

  • EJSON.clone
  • EJSON.parse
  • EJSON.stringify

And some utility methods:

  • EJSON.toJSONValue
  • EJSON.fromJSONValue
  • EJSON.isBinary
  • EJSON.newBinary
  • EJSON.equals

License

This module is licensed under MIT. Same as Meteor.js is.