1.0.0 • Published 10 years ago

evon v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

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:

FeatureJSONevon
Arrays: non-numerically named propertiesDiscardedRestored
Arrays: Sparse entriesAll restored as nullDistinction made between null, undefined and non-existent. Length restored accurately
PrototypeDiscardedRestored if object.constructor evaluates to a constructor function
Constructor parametersNo constructor ever called anywayobject.getCtorParams() may return a list of parameters to pass to the constructor upon restoration. Versions for Date etc provided
Circular referencesExplicitly bottles outRestored
Multiple references to same objectObject duplicatedRestored correctly