Socket
Socket
Sign inDemoInstall

@machinat/ejson

Package Overview
Dependencies
1
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @machinat/ejson

**This package is derived from EJSON module of Meteor. You can check the original source at:** [Source code of released version](https://github.com/meteor/meteor/tree/master/packages/ejson) | [Source code of development version](https://github.com/meteor/


Version published
Weekly downloads
4
increased by300%
Maintainers
2
Install size
69.5 kB
Created
Weekly downloads
 

Readme

Source

ejson

This package is derived from EJSON module of Meteor. You can check the original source at: Source code of released version | Source code of development version


EJSON is an extension of JSON to support more types. It supports all JSON-safe types, as well as:

  • Date - JavaScript Date
  • Binary - JavaScript Uint8Array or the result of EJSON.newBinary
  • User-defined types - see EJSON.addType

All EJSON serializations are also valid JSON. For example an object with a date and a binary buffer would be serialized in EJSON as:

{
  "d": {"$date": 1358205756553},
  "b": {"$binary": "c3VyZS4="}
}

For more details, see the EJSON section of the Meteor docs.

FAQs

Last updated on 01 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc