{"version":"3.0.2","name":"stringify-clone","description":"Wrapper for fast object cloning using `JSON.parse` & `JSON.stringify`","author":{"name":"Ahmad Nassri","email":"ahmad@ahmadnassri.com","url":"https://www.ahmadnassri.com/"},"homepage":"https://github.com/ahmadnassri/node-stringify-clone","repository":{"type":"git","url":"git+https://github.com/ahmadnassri/node-stringify-clone.git"},"bugs":{"url":"https://github.com/ahmadnassri/node-stringify-clone/issues"},"funding":{"type":"individual","url":"https://github.com/sponsors/ahmadnassri"},"license":"MIT","keywords":["stringify","clone"],"engines":{"node":">=14"},"main":"lib/index.js","scripts":{"test":"tap test --no-coverage","test:watch":"tap test --watch","test:ci":"tap test --100","test:report":"opener coverage/lcov-report/index.html"},"devDependencies":{"tap":"^16.3.0"},"_id":"stringify-clone@3.0.2","gitHead":"5d84b31fd6b7036d9edae019c4a0ddbbc085c16b","_nodeVersion":"20.6.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-EOcvMO9F1dN3itj/zfrpiey2Hm0Pohy3GRcCUVsxY+ox4qAOLG7NV3EZfTWMEKmdqHhCpqIvpdTAdR45fv5z9w==","shasum":"d9c750f872dbc161a1dc8ab1ed74242354272a08","tarball":"http://registry-npm.ywwl.com/stringify-clone/download/stringify-clone-3.0.2.tgz","fileCount":4,"unpackedSize":3485,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3ntsvTiAMeWaENiXbUo2KEUp0wzcVpsefucQeWTgJEgIhANja+i0qcmKqkylY6pdtMLBeowcOlH6/T7KbrX9vBUeu"}],"size":1808,"noattachment":false,"key":"/stringify-clone/-/stringify-clone-3.0.2.tgz"},"_npmUser":{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"},"directories":{},"maintainers":[{"name":"ahmadnassri","email":"ahmad@ahmadnassri.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-clone_3.0.2_1693924245482_0.0012440398081614568"},"_hasShrinkwrap":false,"readme":"# Stringify Clone\n\nWrapper for fast object cloning using `JSON.parse` & `JSON.stringify`\n\n[![license][license-img]][license-url]\n[![release][release-img]][release-url]\n[![semantic][semantic-img]][semantic-url]\n\n**IMPORTANT:**\n\n> **THIS IS A [ONE LINE PACKAGE][], THERE IS NO REASON FOR YOU TO USE IT!**\n\n**Notes**:\n\n-   cannot clone `RegExp` *(returns `{}`)*\n-   `NaN` values will be converted to `null`\n-   `Date` objects will be converted to ISO strings (equivalent of running `Date.toISOString()`)\n    -   you can reconstruct the Date by calling `new Date(string)`\n\n## Install\n\n``` bash\nnpm install stringify-clone\n```\n\n## Usage\n\n## API\n\n### clone()\n\n``` js\nconst clone = require('stringify-clone')\n\nclone({\n  foo: 'bar'\n})\n```\n\n  [ONE LINE PACKAGE]: ./index.js\n\n----\n> Author: [Ahmad Nassri](https://www.ahmadnassri.com/) &bull;\n> Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)\n\n[license-url]: LICENSE\n[license-img]: https://badgen.net/github/license/ahmadnassri/node-stringify-clone\n\n[release-url]: https://github.com/ahmadnassri/node-stringify-clone/releases\n[release-img]: https://badgen.net/github/release/ahmadnassri/node-stringify-clone\n\n[semantic-url]: https://github.com/ahmadnassri/node-stringify-clone/actions?query=workflow%3Arelease\n[semantic-img]: https://badgen.net/badge/📦/semantically%20released/blue\n","publish_time":1693924245689,"_cnpm_publish_time":1693924245689,"dist-tags":{"latest":"3.0.2"}}