{"id":13576658,"url":"https://github.com/primus/ejson","last_synced_at":"2025-04-05T08:32:38.825Z","repository":{"id":10098390,"uuid":"12160421","full_name":"primus/ejson","owner":"primus","description":"EJSON - Extended JSON from Meteor available for Node.js and the front-end in one handy neat package. Made compatible for Primus.","archived":false,"fork":false,"pushed_at":"2023-01-18T16:54:33.000Z","size":93,"stargazers_count":87,"open_issues_count":4,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T06:08:59.441Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-16T14:29:13.000Z","updated_at":"2024-06-04T21:20:45.000Z","dependencies_parsed_at":"2023-02-10T16:15:38.407Z","dependency_job_id":null,"html_url":"https://github.com/primus/ejson","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primus%2Fejson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primus%2Fejson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primus%2Fejson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primus%2Fejson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primus","download_url":"https://codeload.github.com/primus/ejson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247311887,"owners_count":20918339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:01:12.545Z","updated_at":"2025-04-05T08:32:38.555Z","avatar_url":"https://github.com/primus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ejson\n\n[![Version npm](https://img.shields.io/npm/v/ejson.svg?style=flat-square)](https://www.npmjs.com/package/ejson)[![CI](https://img.shields.io/github/actions/workflow/status/primus/ejson/ci.yml?branch=master\u0026label=CI\u0026style=flat-square)](https://github.com/primus/ejson/actions?query=workflow%3ACI+branch%3Amaster)[![Coverage Status](https://img.shields.io/coveralls/primus/ejson/master.svg?style=flat-square)](https://coveralls.io/r/primus/ejson?branch=master)\n\n`ejson` is an extension of JSON to support more types. It supports all JSON-safe\ntypes as well as\n\n- **Date**: It maintains a date instance instead of transforming it to a string.\n- **Binary**: `Uint8Array`\n- **User defined types**\n\nThe `ejson` module is port of Meteor's EJSON parser which has been made\ncompatible for Node.js and browsers. This way, other\n[real-time libraries](https://github.com/primus/primus) can also make use of\nthese extensions.\n\n## Installation\n\nThe module is released through npm:\n\n```\nnpm install --save ejson\n```\n\n## Usage\n\nThe API is exactly the same as the API that Meteor provides as it uses exactly\nthe same code. The most important API's are:\n\n- `EJSON.clone`\n- `EJSON.parse`\n- `EJSON.stringify`\n\nAnd some utility methods:\n\n- `EJSON.toJSONValue`\n- `EJSON.fromJSONValue`\n- `EJSON.isBinary`\n- `EJSON.newBinary`\n- `EJSON.equals`\n\nSee the [meteor EJSON documentation](https://docs.meteor.com/#ejson) for more\ndetailed information.\n\n## License\n\nThis module is licensed under MIT. Same as Meteor.js is.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimus%2Fejson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimus%2Fejson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimus%2Fejson/lists"}