tosource.js

0.1.6 • Public • Published

toSource.js

A polyfill for Mozilla's Object.toSource() method. Returns the equivalent JavaScript source code (not JSON) for a JavaScript Object, Number, Boolean, String, RegExp, Error, Date or Function.

See the Mozilla docs for more information.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.6
    81
    • latest

Version History

Package Sidebar

Install

npm i tosource.js

Weekly Downloads

9

Version

0.1.6

License

MIT

Last publish

Collaborators

  • oliver.moran