{"_id":"tosource","_rev":"18-3e5eeae99329304803aed3782c49d259","name":"tosource","description":"toSource converts JavaScript objects back to source","dist-tags":{"latest":"2.0.0-alpha.3"},"versions":{"0.1.0":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"0.1.0","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"tosource.js","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"engines":{"node":">=0.4.0"},"devDependencies":{},"_id":"tosource@0.1.0","_engineSupported":true,"_npmVersion":"1.0.1rc9","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"cb913eb9c3b24952505931f62b8f6053f3771ba9","tarball":"https://registry.npmjs.org/tosource/-/tosource-0.1.0.tgz","integrity":"sha512-9PKZrNjRVjoJzfazU+JVAwL1un9fIA9k9MdMxkAMujIghC8+KsFv4CdS3wuOTES9wrWfpmHksHqqeeRJZEDA/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAwaI+V37QRqArbPas6OK7pKOC1olE7plyV8+Bp16HFXAiAi1afoFxEFq6QUQguLaJt3F+/JrbqYeKVHVr5O60q8cg=="}]},"directories":{}},"0.1.1":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"0.1.1","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"tosource.js","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"engines":{"node":">=0.4.0"},"devDependencies":{},"_id":"tosource@0.1.1","_engineSupported":true,"_npmVersion":"1.0.1rc9","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"33b2d4190a81467d9783a12a56f70a44127339ca","tarball":"https://registry.npmjs.org/tosource/-/tosource-0.1.1.tgz","integrity":"sha512-hTnpPZBZP4DggtRpIAxQi74N4z5vs+Yx3Wcj2CNWLAKPRidZbLN2y5bPn1NI5EoojGzQ1btLzaj7poqsiRsmQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwBiSJoMOF/52IHf5NI1TzMFTWfdEoCfwJRiRyKgv4+AiAha08BcN7X4Q/02Gj0KkprUwFZ7SzXaTcERPYJIXQ3dA=="}]},"directories":{}},"0.1.2":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"0.1.2","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"tosource.js","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"scripts":{"test":"node test.js"},"engines":{"node":">=0.4.0"},"bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"_id":"tosource@0.1.2","dist":{"shasum":"597232d3d4b37be6b9e76a443400aea9be94a116","tarball":"https://registry.npmjs.org/tosource/-/tosource-0.1.2.tgz","integrity":"sha512-mIAPPxCLfyIHpHABTTtlgNQMcJQ9j40TbzeBn+gTx76G2UKVx2cIM9RMD7XMuCR+6n3DNLvNVYoN71bvPS9H5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGznedIAKwJT/uraC23vuj/lSsmn6TfzKHRWAyvxrybmAiEAgDMXnHANIVCPzGn/qy+o/iG16Qw95Nu1IQimfmCPWQw="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"directories":{}},"0.1.3":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"0.1.3","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"tosource.js","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"scripts":{"test":"node test.js"},"engines":{"node":">=0.4.0"},"gitHead":"bb3b7cb675353bd7d6fe9d28d5ea74d12ef2b453","bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"_id":"tosource@0.1.3","_shasum":"6f2d70faf126b92fbb8df5eb15861e491895fd90","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"dist":{"shasum":"6f2d70faf126b92fbb8df5eb15861e491895fd90","tarball":"https://registry.npmjs.org/tosource/-/tosource-0.1.3.tgz","integrity":"sha512-Cahyiut7SkrN9SP/VMSHUeynxAzCDAADV05qf1VNvzoceAJN90JEve2cmOrTTCsXrtp144cnJFG+ceTYCBoEGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8ImBvrAoDmizVY8rYKBy8p9ybI2OFwxswC5uHr/cRvAiAFyHuX9Cp0ScgTTFWo8Ukr7krc/GatzeGX2xPrLR+Gaw=="}]},"directories":{}},"1.0.0":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"1.0.0","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"tosource.js","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"scripts":{"test":"standard && node test.js"},"engines":{"node":">=0.4.0"},"devDependencies":{"standard":"5.2.1"},"gitHead":"242b0928358b9a6e0dfeb958486085fe7c2a15f2","bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"_id":"tosource@1.0.0","_shasum":"42d88dd116618bcf00d6106dd5446f3427902ff1","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.3","_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"dist":{"shasum":"42d88dd116618bcf00d6106dd5446f3427902ff1","tarball":"https://registry.npmjs.org/tosource/-/tosource-1.0.0.tgz","integrity":"sha512-N6g8eQ1eerw6Y1pBhdgkubWIiPFwXa2POSUrlL8jth5CyyEWNWzoGKRkO3CaO7Jx27hlJP54muB3btIAbx4MPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAyT1qvVGE6AJ9N9tt6pmZi22Mx3sHxk9hGr/+R+/0WAIgKNX/ywo8piuLtcJIMNm5444ebS7cYVyypizBZjMwG3U="}]},"directories":{}},"2.0.0-alpha.1":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"2.0.0-alpha.1","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"./dist/index.js","module":"./dist/index.esm.js","typings":"./dist/index.d.ts","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"scripts":{"test":"jest --watch","test-ci":"jest --coverage","build":"rollup -c","lint":"eslint src/**/*.ts","prepublishOnly":"rm -rf dist/ && npm run build"},"engines":{"node":">=10"},"devDependencies":{"@types/jest":"^25.1.4","@types/node":"13.9.8","@typescript-eslint/eslint-plugin":"^2.24.0","@typescript-eslint/parser":"^2.24.0","codecov":"^3.6.5","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","husky":"^4.2.3","jest":"^25.1.0","prettier":"2.0.1","pretty-quick":"^2.0.1","rollup":"^2.1.0","rollup-plugin-typescript2":"^0.26.0","ts-jest":"^25.2.1","tslint-config-prettier":"1.18.0","typescript":"^3.8.3"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"gitHead":"42d4cdaa2a1ba61a13ffa7d8662e52f596a98f13","bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"_id":"tosource@2.0.0-alpha.1","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-vlt6gsVme30ezhaQmgA6h4HgFD5tYMPqNlGrl4wgUykCoZHJuCV3tBEY7UVMMdxYyEyYLeCFyGFNaXY5Ej/VuA==","shasum":"a03c18e901fa7d7c8c4495986bd581c7760cca9f","tarball":"https://registry.npmjs.org/tosource/-/tosource-2.0.0-alpha.1.tgz","fileCount":12,"unpackedSize":13754,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJegs9qCRA9TVsSAnZWagAAeqUP/jk3/DLlpvZgPKzlixx9\nQJVEWkRCF1rM60u+bhDvwk7jnrbGVbnR192GDilnoGKsStPVhB4yMOnC7Kvw\nFI5HISBw3G7fSWfD0zds08j1XtaPM/M0dgdNZfg3v8jPMTbOcWpNESui6f3x\ntSPpd34EaT+yQaclt1YaMqKOceDsXN4lNW8kB2leeHxt0XlF/3H5fPEzMFCt\nmHxNXIwJVt5N//PcBRygTVXjrWpAdyGU1sRWugzXMWqkAoLLg3nZgJ3QVZ6Z\nWVlSs4N+Jf6mdagTQI4zfE87lHE0NLHhvMNGHdONvcdm9du51vRcfbEMgyyw\nig7VqGukJfXhx5LhBSe7oMo6ah1WI5F3Jl0/WnPxt4wzW+9bsbNaKrkT1OY9\nelN2qFlEoZkw1Oz4knVgsDTq4JR4CYcDGezwZyvD0+GDbpJmHRLvvkm7/skT\nJ91jiq9MRwohoHAp9sxxrHr5zmDKwH7AJbNtAfaEy7z0bKP46YqXuSVnFIcr\nA2l2yWLWP66ysuzXYfZJpPAPwn03YB1yxxgrLh6nAu1mmJ2C7uai7MKn5ucZ\nJd2+M919hYooN03k+HPasu7wookCX3i3pNViK/kw+IOp4sdleffCA7GDPZbf\n+FMadCbh35N1ILxMJQM9yN8pIVw6CINqWjaw3XbUH1K0MCAlWQom+voUhYct\nkKlk\r\n=Hy2t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC1i8hrG8n8HXAT9OJjQGhgxjUYVN0/ydezZcJ+JPXF/AiAusHvdPZ8omp9ythr2OuXN4843wawx6jS8LWHCCpgHxQ=="}]},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tosource_2.0.0-alpha.1_1585631081854_0.2715415941873327"},"_hasShrinkwrap":false},"2.0.0-alpha.2":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"2.0.0-alpha.2","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"./dist/index.js","module":"./dist/index.esm.js","typings":"./dist/index.d.ts","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"scripts":{"test":"jest --watch","test-ci":"jest --coverage","build":"rollup -c","lint":"eslint src/**/*.ts","prepublishOnly":"rm -rf dist/ && npm run build"},"engines":{"node":">=10"},"devDependencies":{"@types/jest":"^25.1.4","@types/node":"13.9.8","@typescript-eslint/eslint-plugin":"^2.24.0","@typescript-eslint/parser":"^2.24.0","codecov":"^3.6.5","eslint":"^6.8.0","eslint-config-prettier":"^6.10.1","husky":"^4.2.3","jest":"^25.1.0","prettier":"2.0.1","pretty-quick":"^2.0.1","rollup":"^2.1.0","rollup-plugin-typescript2":"^0.26.0","ts-jest":"^25.2.1","tslint-config-prettier":"1.18.0","typescript":"^3.8.3"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"gitHead":"f7996eac70f6c02e7a3012106ad36d71fd5e764b","bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"_id":"tosource@2.0.0-alpha.2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-WR68bGIDsg1eBF2uHV4bIYYoAeXD3GGj9mToy3AGKnelZgsfuhCrE5xKFvLp7G66N5gTMWkDzN/+iyMrvsVxSA==","shasum":"0c6997c38074ea8608ae18ddba57cadadf8b5d27","tarball":"https://registry.npmjs.org/tosource/-/tosource-2.0.0-alpha.2.tgz","fileCount":12,"unpackedSize":17451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevtdMCRA9TVsSAnZWagAAkCgP/0+nkTlaZemR6azTTCyw\nr7b+TkIHfCfTNuZ/2ZZM2MqdSAARzIQdMtV0QTzxVKQMgeEjD7qL9oMIZwaV\n0VfQjHOitVJdBn+GGvhD7Y5TkKE7G7RJ9EkI5+HILKo6Y5HrAX+gLSfivZlF\nR1meBOuoQjdtk/RacZiymJurDieSuG0Cs0sXCpbbVr+1I9Zh45nY7FFDtafW\nxL3xwtwttHYDRGar0IBXMEWe+PH+5iCnuvBsPlLsYY3MDn0UqJyeb2KKqbGw\nC+FHOa+acyTcphFbj3B6pGPMCPwyA5NZZRu8y+MhBygy6FkyYHDmsLzyxwrd\nnRxN9FMRDPjalXA46bIqVEuCLsWmOaNPNPNXzjniK4FapbslU1UA/cQj6Mjo\nl8GwP5AMf9mtH7HArmDYm5J9YxJkTo3d0OMUs+ej7zdjy1vRZPgLlef4npCD\nT+4LTa+Ui9dMtHRwFGGkmFTVATvgVnDJu42Q6Duuzkx7uBUAbB66AYV/qEIG\n33iifGY2jrgTUPb+EeJdfWXmc2TRFeMkgDx8y6xDwU88B4r/GREnJ333TjoC\nWTSyHjRYXOW1HsH/x4tuxkDB8AEdn/GYHX1hvceqKU8vdUr861OmLBMhE/Ff\ngi5kBgHoG+WnB2dy7lpqlbePbRTfkIKjnTreLXchxIkc/5ECEOIV/zZPLVkC\ns9ev\r\n=Orbj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICk45L8UO0k1jSlx+52QbQbaAADDb2t//AaQ5JRBcabbAiEA9qka3XrTK1VuSyRjwU2GznJD0j/zXUO1wI5maTCmbMA="}]},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tosource_2.0.0-alpha.2_1589565260149_0.49688777860484"},"_hasShrinkwrap":false},"2.0.0-alpha.3":{"name":"tosource","description":"toSource converts JavaScript objects back to source","version":"2.0.0-alpha.3","homepage":"https://github.com/marcello3d/node-tosource","repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"main":"./dist/index.js","module":"./dist/index.esm.js","typings":"./dist/tosource.d.ts","keywords":["source","tosource","json","javascript object","object"],"dependencies":{},"scripts":{"test":"jest --watch","test-ci":"jest --coverage","build":"rollup -c","lint":"eslint src/**/*.ts","prepublishOnly":"rm -rf dist/ && npm run build"},"engines":{"node":">=10"},"devDependencies":{"@types/jest":"26.0.24","@types/node":"16.4.8","@typescript-eslint/eslint-plugin":"4.28.5","@typescript-eslint/parser":"4.28.5","codecov":"3.8.3","eslint":"7.32.0","eslint-config-prettier":"8.3.0","husky":"^4.2.3","jest":"27.0.6","prettier":"2.3.2","pretty-quick":"3.1.1","rollup":"2.55.1","rollup-plugin-typescript2":"0.30.0","ts-jest":"27.0.4","tslint-config-prettier":"1.18.0","typescript":"4.3.5"},"jest":{"preset":"ts-jest","testEnvironment":"node"},"gitHead":"e415c4366ec3c8a958be8a243806323611000f29","bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"_id":"tosource@2.0.0-alpha.3","_nodeVersion":"12.22.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-KAB2lrSS48y91MzFPFuDg4hLbvDiyTjOVgaK7Erw+5AmZXNq4sFRVn8r6yxSLuNs15PaokrDRpS61ERY9uZOug==","shasum":"ef385dac9092e009bf25c018838ddaae436daeb6","tarball":"https://registry.npmjs.org/tosource/-/tosource-2.0.0-alpha.3.tgz","fileCount":12,"unpackedSize":17610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhBcVMCRA9TVsSAnZWagAAJ/0P+QGBei4Ls7W384FPZSh+\n3P4ZX74yHlbXQMHkEzRmtoiUvM5Y2+agSRtFZh11wVDfx58HNCCALpMhgGUM\n/9biFqG+mE++8I7+U3snUjQtEF5BVSWc8vdIyv4tZQj47+nsXBqNoyAue67t\nR8K9gvS9JaA8zf6rH6wAil5V882iTLFqcMp1oAUVIP1THPJLLq/T4Bv0JKfC\nac6iAV9YSUT/mQAD8DzR0VN7pUqIos2ZrLGdsqaLPZVkmwVKR9CbeUqeBeee\n11gTb42qs+lGeqTGSwqfTsMcxX5vuKSTa1C6cD+1RDvxlIhj4xIba0TwTp/C\nEDL8Fu1AXXt7FCwtYi7zLPAy+gEDu2sxEkVHJaKpyLT7nlCv/WiNjMoAOoHm\nRyTbeV3z3mHGFiKB+EWRHQgQ9aqc05+hv54rrEhCCvu0z78YZikM4pucqM1q\nHHiQmn/N4D5bQpNoq8h3LZljHTkl4b9egZt52DRHTwbmwWDX4HgEAVGzZ8Ar\nVd7MUaM0T7TmwlmXhZEjItLzeKFKfkbrkqc4OootNPyZnbLdlC1D7CKVPMFm\ndyLQ/xrh3RlrDOk+FtH/a8VDGDjptbRvRclFAiGK1DnI4IlmkS9E4XdQOAML\n9zLesuTL6keNGDkhfsEtHRXr+0a+xiw0dC7qWgy8STu/V2DrinW6z7td4FLg\nHdG3\r\n=oaTY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9mx8eCza/pbLUxchro4ahEZJRocZb0sk10+u+gIaINwIgNPJDoD2+zg8jnABWjMIF+5U4DxQwgs0DMX4kz8WMPXE="}]},"_npmUser":{"name":"marcello","email":"marcello@cellosoft.com"},"directories":{},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tosource_2.0.0-alpha.3_1627768140711_0.9896346303630168"},"_hasShrinkwrap":false}},"maintainers":[{"name":"marcello","email":"marcello@cellosoft.com"}],"time":{"modified":"2022-06-27T18:54:32.402Z","created":"2011-04-24T18:44:22.731Z","0.1.0":"2011-04-24T18:44:22.886Z","0.1.1":"2011-04-24T19:26:34.412Z","0.1.2":"2014-05-14T22:39:05.819Z","0.1.3":"2014-10-08T18:34:04.339Z","1.0.0":"2015-09-03T15:48:50.901Z","2.0.0-alpha.1":"2020-03-31T05:04:41.962Z","2.0.0-alpha.2":"2020-05-15T17:54:20.281Z","2.0.0-alpha.3":"2021-07-31T21:49:00.895Z"},"author":{"name":"Marcello Bastéa-Forte","email":"marcello@cellosoft.com","url":"http://marcello.cellosoft.com/"},"repository":{"type":"git","url":"git://github.com/marcello3d/node-tosource.git"},"readme":"# node-tosource\n\n[![Actions Status](https://github.com/marcello3d/node-tosource/workflows/Node%20CI/badge.svg)](https://github.com/marcello3d/node-tosource/actions)\n[![npm version](https://badge.fury.io/js/tosource.svg)](https://badge.fury.io/js/tosource)\n[![codecov](https://codecov.io/gh/marcello3d/node-tosource/branch/master/graph/badge.svg)](https://codecov.io/gh/marcello3d/node-tosource)\n\ntoSource is a super simple function that converts JavaScript objects back to source code.\n\n## Introduction\n\nMotivation: JSON doesn't support serializing functions, dates, or regular expressions. I wanted\na quick and simple way to push trusted data structures with code from Node down to the browser.\n\nThis should make it easier to share code and modules between the server and client.\n\n## Installation\n\n```\nnpm install tosource\n```\n\n## Examples\n\nThe following code:\n\n```js\nimport toSource from 'tosource';\n\nconsole.log(\n  toSource([\n    4,\n    5,\n    6,\n    'hello',\n    {\n      a: 2,\n      b: 3,\n      '1': 4,\n      if: 5,\n      yes: true,\n      no: false,\n      nan: NaN,\n      infinity: Infinity,\n      undefined: undefined,\n      null: null,\n      foo: function (bar) {\n        console.log('woo! a is ' + a);\n        console.log('and bar is ' + bar);\n      },\n    },\n    /we$/gi,\n    new Date('Wed, 09 Aug 1995 00:00:00 GMT'),\n  ]),\n);\n```\n\nOutput:\n\n```\n[ 4,\n  5,\n  6,\n  \"hello\",\n  { 1:4,\n    a:2,\n    b:3,\n    \"if\":5,\n    yes:true,\n    no:false,\n    nan:NaN,\n    infinity:Infinity,\n    \"undefined\":undefined,\n    \"null\":null,\n    foo:function (bar) {\n        console.log('woo! a is ' + a);\n        console.log('and bar is ' + bar);\n      } },\n  /we$/gi,\n  new Date(807926400000) ]\n```\n\nSee [tosource.test.ts][1] for more examples.\n\n## Supported Types\n\n- numbers (including `NaN`, `Infinity`, and `-0`)\n- strings\n- Arrays (including sparse arrays)\n- object literals\n- function\n- `RegExp` instances\n- `Date` instances\n- `Map`\n- `Set`\n- `true` / `false`\n- `undefined`\n- `null`\n\n## Notes\n\n- Functions are serialized with `func.toString()`, no closure properties are serialized\n- Multiple references to the same object become copies\n- Circular references are encoded as `{$circularReference:true}`\n\n## License\n\ntoSource is open source software under the [zlib license][2].\n\n[1]: https://github.com/marcello3d/node-tosource/blob/master/src/tosource.test.ts\n[2]: https://github.com/marcello3d/node-tosource/blob/master/LICENSE\n","homepage":"https://github.com/marcello3d/node-tosource","keywords":["source","tosource","json","javascript object","object"],"bugs":{"url":"https://github.com/marcello3d/node-tosource/issues"},"readmeFilename":"Readme.md","users":{"wcastand":true,"meeh":true}}