{"name":"json-future","version":"2.2.26","keywords":["ES6","ES7","JSON","async","circular","future","interface","load","parse","save","stable","stringify","write"],"author":{"url":"https://github.com/Kikobeats","name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com"},"license":"MIT","_id":"json-future@2.2.26","maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"contributors":[],"homepage":"https://nicedoc.io/kikobeats/json-future","bugs":{"url":"https://github.com/Kikobeats/json-future/issues"},"dist":{"shasum":"8ad24afb03368ddd157a1cdcee03fea2abd767ec","tarball":"http://registry-npm.ywwl.com/json-future/download/json-future-2.2.26.tgz","fileCount":6,"integrity":"sha512-TEvXD7/SVipXTlc9yKcyTWD2UgfCXuGzptao+kesVaSUPBE57yI8VJYss5qTMdlGC44PnI7qErNIYY4EYSgjhQ==","signatures":[{"sig":"MEUCIFZKTVwThqMNIkC8vYuy5dWq0cHQ82PWkdFSY23XVFm4AiEAralvHZD1o7mgGO8SIBmlXkQ4JwN02/UXJPARPpj5//E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10580,"size":3945,"noattachment":false,"key":"/json-future/-/json-future-2.2.26.tgz"},"main":"lib","engines":{"node":">= 4"},"gitHead":"5f66b528d156fb03bc1815d74920d34d8ff4b0b5","scripts":{"lint":"standard lib","test":"c8 mocha","clean":"rm -rf node_modules","update":"ncu -u","pretest":"npm run lint","release":"standard-version -a","coverage":"nyc report --reporter=text-lcov | coveralls","prerelease":"npm run update:check && npm run contributors","preversion":"git-authors-cli && git add package.json","postrelease":"npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)","contributors":"(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true","release:tags":"git push --follow-tags origin HEAD:master","update:check":"ncu -- --error-level 2","release:github":"conventional-github-releaser -p angular"},"_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"standard":{"globals":["after","describe","it"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/kikobeats/json-future.git","type":"git"},"_npmVersion":"11.13.0","description":"Unbelievable and Modern JSON interface.","directories":{},"nano-staged":{"package.json":["finepack"]},"_nodeVersion":"24.16.0","dependencies":{"async":"~3.2.0","sliced":"~1.0.1","args-js":"~0.10.12","nodeify":"~1.0.1","cb2promise":"~1.1.1","parse-json":"~5.2.0","load-json-file":"~6.2.0","write-json-file":"~4.3.0","fast-safe-stringify":"~2.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"latest","mocha":"latest","should":"latest","finepack":"latest","standard":"latest","ci-publish":"latest","nano-staged":"latest","@commitlint/cli":"latest","git-authors-cli":"latest","simple-git-hooks":"latest","standard-version":"latest","npm-check-updates":"latest","standard-markdown":"latest","@ksmithut/prettier-standard":"latest","conventional-github-releaser":"latest","@commitlint/config-conventional":"latest"},"simple-git-hooks":{"commit-msg":"npx commitlint --edit","pre-commit":"npx nano-staged"},"_npmOperationalInternal":{"tmp":"tmp/json-future_2.2.26_1781821315383_0.15365205988953123","host":"s3://npm-registry-packages-npm-production"},"readme":"# JSON Future\n\n<h1 align=\"center\">\n  <img src=\"https://i.imgur.com/WSDllwa.png\" alt=\"json-future\">\n  <br>\n  <br>\n</h1>\n\n![Last version](https://img.shields.io/github/tag/Kikobeats/json-future.svg?style=flat-square)\n[![Build Status](http://img.shields.io/travis/Kikobeats/json-future/master.svg?style=flat-square)](https://travis-ci.org/Kikobeats/json-future)\n[![NPM Status](http://img.shields.io/npm/dm/json-future.svg?style=flat-square)](https://www.npmjs.org/package/json-future)\n\n> Modern JSON interface. [propositions for ECMAScript 7](https://github.com/mohsen1/async-json).\n\n## Why\n\n* High level methods for manipulate JSON files.\n* Backward compatibility with JSON Object in Node/Browser.\n* Async support (callback/promise) based on [ECMAScript proposal](https://github.com/mohsen1/async-json).\n\nJSON Future is based into a set of cool libraries to handle JSON, but some of this libraries uses promises or callback style. This library adds an extra layer to call these libraries uniformly.\n\n## Install\n\n```bash\nnpm install json-future --save\n```\n\n## Usage\n\n```js\nconst jsonFuture = require('json-future')\n```\n\nDon't be afraid to replace for the default `JSON` object. The library is specially designed for be compatible and don't break your code:\n\n```js\nJSON = require('json-future')\n```\n\nAlso you can do this action using the `register` helper:\n\n```js\nrequire('json-future/register')\n```\n\n## API\n\nIn `async` methods, if you don't provide a callback for node style, then the method return a `Promise`.\n\n### .stringify(input, [replacer], [space])\n### .stringifyAsync(input, [replacer], [space], [cb])\n\nCreates the `string` version of the input.\n\n### .parse(input, [reviver], [filename])\n### .parseAsync(input, [reviver], [filename], [cb])\n\nCreates the `object` version of the input.\n\n### .load(filepath)\n### .loadAsync(filepath, [cb])\n\nReturns the parsed JSON.\n\n### .save(filepath, data, [options])\n### .saveAsync(filepath, data, [options], [cb])\n\nStringify and write JSON to a file atomically.\n\n#### options\n\n##### indent\n\nType: `string`, `number`\nDefault: `\\t`\n\nIndentation as a string or number of spaces.\nPass in `null` for no formatting.\n\n##### sortKeys\n\nType: `boolean`, `function`\nDefault: `false`\n\nSort the keys recursively.\nOptionally pass in a [`compare`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) function.\n\n##### replacer\n\nType: `function`\n\nPassed into [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter).\n\n##### mode\n\nType: `number`\nDefault `438` *(0666 in octal)*\n\n[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file.\n\n## License\n\nMIT © [Kiko Beats](http://kikobeats.com)\n","publish_time":1781821315518,"_cnpm_publish_time":1781821315518,"dist-tags":{"latest":"2.2.28"}}