{"name":"json-future","description":"Unbelievable and Modern JSON interface.","homepage":"https://nicedoc.io/kikobeats/json-future","version":"2.2.16","main":"lib","author":{"name":"Kiko Beats","email":"josefrancisco.verdu@gmail.com","url":"https://github.com/Kikobeats"},"repository":{"type":"git","url":"git+https://github.com/kikobeats/json-future.git"},"bugs":{"url":"https://github.com/Kikobeats/json-future/issues"},"keywords":["ES6","ES7","JSON","async","circular","future","interface","load","parse","save","stable","stringify","write"],"dependencies":{"args-js":"~0.10.12","async":"~3.2.0","cb2promise":"~1.1.1","fast-safe-stringify":"~2.1.0","load-json-file":"~6.2.0","nodeify":"~1.0.1","parse-json":"~5.2.0","sliced":"~1.0.1","write-json-file":"~4.3.0"},"devDependencies":{"@commitlint/cli":"latest","@commitlint/config-conventional":"latest","c8":"latest","ci-publish":"latest","conventional-github-releaser":"latest","finepack":"latest","git-authors-cli":"latest","mocha":"latest","nano-staged":"latest","npm-check-updates":"latest","prettier-standard":"latest","should":"latest","simple-git-hooks":"latest","standard":"latest","standard-markdown":"latest","standard-version":"latest"},"engines":{"node":">= 4"},"scripts":{"clean":"rm -rf node_modules","contributors":"(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true","coverage":"nyc report --reporter=text-lcov | coveralls","lint":"standard lib","postrelease":"npm run release:tags && npm run release:github && (ci-publish || npm publish --access=public)","prerelease":"npm run update:check && npm run contributors","pretest":"npm run lint","preversion":"git-authors-cli && git add package.json","release":"standard-version -a","release:github":"conventional-github-releaser -p angular","release:tags":"git push --follow-tags origin HEAD:master","test":"c8 mocha","update":"ncu -u","update:check":"ncu -- --error-level 2"},"license":"MIT","commitlint":{"extends":["@commitlint/config-conventional"]},"nano-staged":{"package.json":["finepack"]},"simple-git-hooks":{"commit-msg":"npx commitlint --edit","pre-commit":"npx nano-staged"},"standard":{"globals":["after","describe","it"]},"gitHead":"a0e42851b38f162f21af40ab3c7a1935eada19b2","_id":"json-future@2.2.16","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-iwqQdgyo0RJsuRtgsozNUfcuv5FSsq8oFqbnz4HarvHK8W/mBsxv1tvb5+EYinYqvhdoKyLmkQSlfRtI3i1nUQ==","shasum":"55088ecb33ab672c100aa55b0fb6bfb700aaab1d","tarball":"http://registry-npm.ywwl.com/json-future/download/json-future-2.2.16.tgz","fileCount":6,"unpackedSize":10428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsFMsTd+zKMXU0n+Wjuc2PXTgaDQK5LAKftGLot07K1AIgdXCDFZzmo6EC0+KE8ZLR6WkykAGEKPIhqxmQftC3gVk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiR1+gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+1RAAjKSSTo9ma+TqxNNd8cFDcTMlcjBnUBBgRHqhXif6a1j0+SjL\r\nzEi734jwBf732F/+C3a84/vJjJMXLiVJ/u1xYZs53/lQlgEdXT4IsnxAoXqc\r\na/3Gsdie+/+tNA9qOLYnQ9PS6xZL1lilsBOUh8vFRSAPfpCFF8+Nj+SgYjfZ\r\nlJu2HhEXNMrwFaQPa4sXWBWObUKCwI1aGpLsnBJMTVyLR0a96/6NAFcl6IfX\r\nM0lluWMYBfN5Rg0dTaeZytS+WvqEA0hyklChTtDFcaoDVWt1rBXiYHEj4z5d\r\n9ZapQU8h6IiBt0PdXoMukzP1aC9K2FkFl6NAl3pnwjlZZN3tKYMHgV3o2vQ1\r\n79OjQRRzhvGWEZbcXCSa/HxtgVsZz2FlIlJZ1Z1cZXLg4lPMu92xOdsHmwLz\r\nNkHPRwmEMmpQJvJ9nE3hWzljgOzKXBCOhz3SBYKtcrd5HUF9VEWK0tBt62Jt\r\nNGEA+MOAjjKEmqjpyDsg4bOZFv19OIg2F7DRmgAj5BZbcPOjaFmRU9aoF5hN\r\nd74xb/HOoFhbEkyRV+r4bGWyr53An2468rN0BhJM50DhxgzkasvxxY/OZYmf\r\n7p9BQUzDzJblqCNTTc/UweXBdU+mcxHjOorxDkDFSBxkiQF4UdlsiHkKoeGO\r\noYDmURXUaV1405KogbqflEe49rLi1aIwfkg=\r\n=gFQq\r\n-----END PGP SIGNATURE-----\r\n","size":3884,"noattachment":false,"key":"/json-future/-/json-future-2.2.16.tgz"},"_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"directories":{},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-future_2.2.16_1648844704779_0.7708134399130768"},"_hasShrinkwrap":false,"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":1648844704887,"_cnpm_publish_time":1648844704887,"dist-tags":{"latest":"2.2.28"}}