evon

1.0.0 • Public • Published

evon

More accurate than JSON and nearly as fast.

An evon encoding is a javascript program that we eval() to accomplish the restore.

This is much more flexible and accurate than JSON, and the speed is still respectable.

Compare:

Feature JSON evon
Arrays: non-numerically named properties Discarded Restored
Arrays: Sparse entries All restored as null Distinction made between null, undefined and non-existent. Length restored accurately
Prototype Discarded Restored if object.constructor evaluates to a constructor function
Constructor parameters No constructor ever called anyway object.getCtorParams() may return a list of parameters to pass to the constructor upon restoration. Versions for Date etc provided
Circular references Explicitly bottles out Restored
Multiple references to same object Object duplicated Restored correctly

Package Sidebar

Install

npm i evon

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • adrianmay