{"_id":"stringify-json-object","_rev":"203547","name":"stringify-json-object","description":"Stringify and format a JSON object","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"time":{"modified":"2023-03-21T13:24:54.000Z","created":"2020-08-28T03:11:54.034Z","3.0.0":"2023-01-24T18:27:22.423Z","2.0.0":"2023-01-18T00:06:37.554Z","1.0.7":"2020-12-15T02:47:39.359Z","1.0.6":"2020-10-04T04:27:59.292Z","1.0.5":"2020-09-13T03:01:47.622Z","1.0.4":"2020-09-03T02:21:26.169Z","1.0.3":"2020-09-02T03:41:56.665Z","1.0.2":"2020-08-29T18:18:22.657Z","1.0.1":"2020-08-28T03:15:59.119Z","1.0.0":"2020-08-28T03:11:54.034Z"},"users":{},"author":{"name":"Connor White"},"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"versions":{"3.0.0":{"name":"stringify-json-object","version":"3.0.0","description":"Stringify and format a JSON object","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.dev/github/stringify-json-object","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"bugs":{"url":"https://github.com/bconnorwhite/stringify-json-object/issues"},"keywords":["json","stringify","format","pretty","typed","object","typescript","ts"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"dependencies":{"types-json":"^3.1.2"},"devDependencies":{"autorepo":"^0.1.9"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"stringify-json-object@3.0.0","dist":{"shasum":"71b453961a3e336e7dd75cee9f0b6a98da72385d","size":2406,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-3.0.0.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_3.0.0_1674584842297_0.6114189086216271"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-24T18:27:22.423Z","publish_time":1674584842423,"_cnpm_publish_time":1674584842423},"2.0.0":{"name":"stringify-json-object","version":"2.0.0","description":"Stringify and format a JSON object","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.dev/github/stringify-json-object","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"bugs":{"url":"https://github.com/bconnorwhite/stringify-json-object/issues"},"keywords":["json","stringify","format","pretty","typed","object","typescript","ts"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"dependencies":{"types-json":"^3.0.0"},"devDependencies":{"autorepo":"^0.1.9"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"stringify-json-object@2.0.0","dist":{"shasum":"22e116249f6761ea7b9cf7ba1fb2435c89d5137a","size":2142,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-2.0.0.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_2.0.0_1674000397416_0.6772252898076554"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-18T00:06:37.554Z","publish_time":1674000397554,"_cnpm_publish_time":1674000397554},"1.0.7":{"name":"stringify-json-object","version":"1.0.7","description":"Stringify and format a JSON object","license":"MIT","author":{"name":"Connor White"},"homepage":"https://connorwhite.org/github/stringify-json-object","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"keywords":["json","stringify","format","pretty","typed","object","typescript","ts"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"types-json":"^1.2.2"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"stringify-json-object@1.0.7","dist":{"shasum":"7c5592c0c85aa247d104c3a27f5e70c67ce22ca6","size":1809,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.7.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.7.tgz"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.7_1608000459181_0.6345916655117714"},"_hasShrinkwrap":false,"publish_time":1608000459359,"_cnpm_publish_time":1608000459359,"_cnpmcore_publish_time":"2021-12-16T22:27:22.354Z"},"1.0.6":{"name":"stringify-json-object","version":"1.0.6","description":"Stringify and format a JSON object","license":"MIT","author":{"name":"Connor White"},"homepage":"https://connorwhite.org/github/stringify-json-object","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"keywords":["json","stringify","format","pretty","typed","object","typescript","ts"],"main":"./build/index.js","scripts":{"build":"bob build","commit":"bob commit","lint":"bob lint","release":"bob publish","test":"bob test"},"dependencies":{"json-types":"^1.0.2"},"devDependencies":{"@bconnorwhite/bob":"^2.9.2"},"eslintConfig":{"extends":"eslint-config-bob"},"husky":{"hooks":{"commit-msg":"bob lint commit"}},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"stringify-json-object@1.0.6","dist":{"shasum":"b9223287c460a238847dd7c47b2bcacd5c2e59fd","size":1721,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.6.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.6.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.6_1601785679132_0.25613676109029915"},"_hasShrinkwrap":false,"publish_time":1601785679292,"_cnpm_publish_time":1601785679292,"_cnpmcore_publish_time":"2021-12-16T22:27:22.581Z"},"1.0.5":{"name":"stringify-json-object","version":"1.0.5","description":"Stringify and format a JSON object.","license":"MIT","author":{"name":"Connor White"},"homepage":"https://connorwhite.org/github/stringify-json-object","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"keywords":["json","stringify","format","pretty","typed","object"],"main":"./build/index.js","scripts":{"build":"bob build","postversion":"git push","prepublishOnly":"yarn build && yarn test","test":"yarn jest"},"dependencies":{"@bconnorwhite/json-types":"^1.0.5"},"devDependencies":{"@bconnorwhite/bob":"^2.1.0","jest":"^26.4.2"},"_id":"stringify-json-object@1.0.5","dist":{"shasum":"daff40d7e9fed8c54ab42fe2c93064dbbda62e86","size":1118,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.5.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.5.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.5_1599966107483_0.09079997363811776"},"_hasShrinkwrap":false,"publish_time":1599966107622,"_cnpm_publish_time":1599966107622,"_cnpmcore_publish_time":"2021-12-16T22:27:22.814Z"},"1.0.4":{"name":"stringify-json-object","version":"1.0.4","description":"Stringify and format a JSON object.","author":{"name":"Connor White"},"license":"MIT","keywords":["json","stringify","format","pretty","typed","object"],"homepage":"https://connorwhite.org/github/stringify-json-object","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"main":"./build/index.js","scripts":{"build":"bob build","prepublishOnly":"yarn build && yarn test","postversion":"git push","test":"yarn jest"},"dependencies":{"@bconnorwhite/json-types":"^1.0.5"},"devDependencies":{"@bconnorwhite/bob":"^1.9.7","jest":"^26.4.2"},"_id":"stringify-json-object@1.0.4","dist":{"shasum":"05ba7bece42f59766bc5861e4088a35113fe2a97","size":1104,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.4.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.4.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.4_1599099686028_0.8559110170831836"},"_hasShrinkwrap":false,"publish_time":1599099686169,"_cnpm_publish_time":1599099686169,"_cnpmcore_publish_time":"2021-12-16T22:27:23.025Z"},"1.0.3":{"name":"stringify-json-object","version":"1.0.3","description":"Stringify and format a JSON object.","author":{"name":"Connor White"},"license":"MIT","keywords":["json","stringify","format","pretty","typed","object"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"main":"./build/index.js","scripts":{"build":"bob build","prepublishOnly":"yarn build && yarn test","test":"yarn jest"},"dependencies":{"@bconnorwhite/json-types":"^1.0.3"},"devDependencies":{"@bconnorwhite/bob":"^1.9.6","jest":"^26.4.2"},"_id":"stringify-json-object@1.0.3","dist":{"shasum":"86162b4c7b60441c8c6fb9cf70ae822995db0943","size":1077,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.3.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.3.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.3_1599018116550_0.6330741930574104"},"_hasShrinkwrap":false,"publish_time":1599018116665,"_cnpm_publish_time":1599018116665,"_cnpmcore_publish_time":"2021-12-16T22:27:23.255Z"},"1.0.2":{"name":"stringify-json-object","version":"1.0.2","description":"Stringify and format a JSON object.","author":{"name":"Connor White"},"license":"MIT","keywords":["json","stringify","format","pretty","typed","object"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"main":"./build/index.js","scripts":{"build":"bob build","prepublishOnly":"yarn build && yarn test","test":"yarn jest"},"dependencies":{"@bconnorwhite/json-types":"^1.0.2"},"devDependencies":{"@bconnorwhite/bob":"^1.9.5","jest":"^26.4.2"},"_id":"stringify-json-object@1.0.2","dist":{"shasum":"4ffbd96d6b4f385826174493a822c866450537f9","size":1071,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.2.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.2.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.2_1598725102427_0.8669346613775728"},"_hasShrinkwrap":false,"publish_time":1598725102657,"_cnpm_publish_time":1598725102657,"_cnpmcore_publish_time":"2021-12-16T22:27:23.451Z"},"1.0.1":{"name":"stringify-json-object","version":"1.0.1","description":"Stringify and format a JSON object.","author":{"name":"Connor White"},"license":"MIT","keywords":["json","stringify","format","pretty","typed","object"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"main":"./build/index.js","scripts":{"build":"babel ./src --out-dir ./build --config-file ./babel.config.json --extensions .ts --delete-dir-on-start && tsc --project ./tsconfig.json","prepublishOnly":"yarn build"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@types/node":"^14.0.27","typescript":"^3.9.7"},"dependencies":{"@bconnorwhite/json-types":"^1.0.2"},"_id":"stringify-json-object@1.0.1","dist":{"shasum":"25e19b8831ddff989cd21c1be9172bf7dd62204e","size":1178,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.1.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.1_1598584558997_0.8900682272617948"},"_hasShrinkwrap":false,"publish_time":1598584559119,"_cnpm_publish_time":1598584559119,"_cnpmcore_publish_time":"2021-12-16T22:27:23.659Z"},"1.0.0":{"name":"stringify-json-object","version":"1.0.0","description":"Stringify and format a JSON object.","author":{"name":"Connor White"},"license":"MIT","keywords":["json","stringify","typed","object"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/stringify-json-object.git"},"main":"./build/index.js","scripts":{"build":"babel ./src --out-dir ./build --config-file ./babel.config.json --extensions .ts --delete-dir-on-start && tsc --project ./tsconfig.json","prepublishOnly":"yarn build"},"devDependencies":{"@babel/cli":"^7.10.5","@babel/core":"^7.11.1","@babel/plugin-transform-runtime":"^7.11.0","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@types/node":"^14.0.27","typescript":"^3.9.7"},"dependencies":{"@bconnorwhite/json-types":"^1.0.1"},"_id":"stringify-json-object@1.0.0","dist":{"shasum":"d9eaecba11509caa37feea23240cdac6380a188a","size":1172,"noattachment":false,"key":"/stringify-json-object/-/stringify-json-object-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/stringify-json-object/download/stringify-json-object-1.0.0.tgz"},"maintainers":[{"name":"bconnorwhite","email":""},{"name":"npm:bconnorwhite","email":""}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stringify-json-object_1.0.0_1598584313922_0.43657378935483604"},"_hasShrinkwrap":false,"publish_time":1598584314034,"_cnpm_publish_time":1598584314034,"_cnpmcore_publish_time":"2021-12-16T22:27:23.898Z"}},"readme":"<!--BEGIN HEADER-->\n<div id=\"top\" align=\"center\">\n  <h1>stringify-json-object</h1>\n  <a href=\"https://npmjs.com/package/stringify-json-object\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/stringify-json-object.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/stringify-json-object\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/stringify-json-object.svg\">\n  </a>\n  <a href=\"https://coveralls.io/github/bconnorwhite/stringify-json-object?branch=master\">\n    <img alt=\"Coverage Status\" src=\"https://img.shields.io/coveralls/github/bconnorwhite/stringify-json-object.svg?branch=master\">\n  </a>\n</div>\n\n<br />\n\n<blockquote align=\"center\">Stringify and format a JSON object.</blockquote>\n\n<br />\n\n_If I should maintain this repo, please ⭐️_\n<a href=\"https://github.com/bconnorwhite/stringify-json-object\">\n  <img align=\"right\" alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/stringify-json-object?label=%E2%AD%90%EF%B8%8F&style=social\">\n</a>\n\n_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._\n<a href=\"https://twitter.com/bconnorwhite\">\n  <img align=\"right\" alt=\"Twitter\" src=\"https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite\">\n</a>\n\n---\n<!--END HEADER-->\n\n## Installation\n\n```sh\nyarn add stringify-json-object\n```\n\n```sh\nnpm install stringify-json-object\n```\n\n```sh\npnpm add stringify-json-object\n```\n\n## Usage\n\nThe `stringify` function works like `JSON.stringify`:\n\n```ts\nimport stringify from \"stringify-json-object\";\n\nstringify(true); // 'true'\nstringify(1); // '1'\nstringify(\"foo\"); // '\"foo\"'\nstringify({ foo: \"bar\" }); // '{\"foo\":\"bar\"}'\nstringify({ foo: \"bar\", missing: undefined }); // '{\"foo\":\"bar\"}'\n\n```\n\nThe `stringify` function also accepts an options argument, to easily format the output:\n\n```ts\nimport stringify from \"stringify-json-object\";\n\nstringify({ foo: \"bar\" }, { pretty: true }); // '{\\n  \"foo\": \"bar\"\\n}\"\n```\n\nAdditionally, primitives resolve to typed string literals:\n```ts\nimport stringify from \"stringify-json-object\";\n\nstringify(true); // \"true\"\nstringify(1); // \"1\"\nstringify(\"foo\"); // \"\\\"foo\\\"\"\nstringify({ foo: \"bar\" }); // string\n\n```\n\n<!--BEGIN FOOTER-->\n\n<br />\n\n<h2 id=\"dependencies\">Dependencies<a href=\"https://www.npmjs.com/package/stringify-json-object?activeTab=dependencies\"><img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/librariesio/release/npm/stringify-json-object.svg\"></a></h2>\n\n- [types-json](https://www.npmjs.com/package/types-json): Type checking for JSON values\n\n<br />\n\n<h3>Dev Dependencies</h3>\n\n- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.\n\n<br />\n\n<h2 id=\"license\">License <a href=\"https://opensource.org/licenses/MIT\"><img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/stringify-json-object.svg\"></a></h2>\n\n[MIT](https://opensource.org/licenses/MIT)\n<!--END FOOTER-->\n\n<br />\n\n## Related Packages\n\n- [parse-json-object](https://www.npmjs.com/package/parse-json-object): Parse a typed JSON object\n","_attachments":{},"homepage":"https://connorwhite.dev/github/stringify-json-object","bugs":{"url":"https://github.com/bconnorwhite/stringify-json-object/issues"},"license":"MIT"}