fnjson

1.3.0 • Public • Published

fnjson

stringify objects containing functions

example

var fnjson = require('fnjson')
var stringify = fnjson.stringify
var parse = fnjson.parse
var clone = fnjson.clone
 
console.log(JSON.parse(stringify({
  a: function () { return 5 }
})))
 
//// or to e.g. minimize browserify bundle size
 
var parse = require('fnjson/source/node_modules/_parse')
var clone = require('fnjson/source/node_modules/_clone')
var stringify = require('fnjson/source/node_modules/_stringify')
 

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i fnjson

      Weekly Downloads

      91

      Version

      1.3.0

      License

      MIT

      Last publish

      Collaborators

      • serapath