{"name":"json-future","description":"Unbelievable and Modern JSON interface.","homepage":"https://nicedoc.io/kikobeats/json-future","version":"2.1.4","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":["ECMAScript 7","ES2016","ES7","JSON","async","future","interface","load","parse","save","stringify","write"],"dependencies":{"args-js":"~0.10.11","async":"~2.6.0","cb2promise":"~1.1.0","json-stringify-safe":"~5.0.1","load-json-file":"~5.2.0","nodeify":"~1.0.0","parse-json":"~4.0.0","sliced":"~1.0.1","write-json-file":"~3.1.0"},"devDependencies":{"coveralls":"latest","git-dirty":"latest","mocha":"latest","nyc":"latest","should":"latest","standard":"latest","@commitlint/cli":"latest","@commitlint/config-conventional":"latest","conventional-github-releaser":"latest","finepack":"latest","git-authors-cli":"latest","husky":"latest","lint-staged":"latest","npm-check-updates":"latest","standard-version":"latest","ci-publish":"latest"},"engines":{"node":">= 4"},"scripts":{"clean":"rm -rf node_modules","coverage":"nyc report --reporter=text-lcov | coveralls","lint":"standard lib","pretest":"npm run lint","test":"nyc mocha","postrelease":"npm run release:tags && npm run release:github && ci-publish","prerelease":"npm run update:check && git-authors-cli","release:github":"conventional-github-releaser -p angular","release:tags":"git push --follow-tags origin HEAD:master","release":"git add package.json && standard-version -a","update:check":"ncu -- --error-level 2","update":"ncu -a"},"license":"MIT","standard":{"globals":["after","describe","it"]},"commitlint":{"extends":["@commitlint/config-conventional"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"standard-version":{"scripts":{"prechangelog":"git-authors-cli"}},"lint-staged":{"linters":{"package.json":["finepack","git add"]}},"gitHead":"70e749092fd76dcf563ae608a6121243542bbca1","_id":"json-future@2.1.4","_shasum":"9a8a57e751c79a33c3e76734cac24e270da3f3df","_from":".","_npmVersion":"3.10.10","_nodeVersion":"10.15.1","_npmUser":{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},"dist":{"shasum":"9a8a57e751c79a33c3e76734cac24e270da3f3df","tarball":"http://registry-npm.ywwl.com/json-future/download/json-future-2.1.4.tgz","integrity":"sha512-dWJ2qEtLHhHrODAJgUDN22Wlulwe6DBwbUbXuM/ORv8wXquxjHQPN3WWoy3qZ59Ti/E1HiJX/MvfgYo5ycz1Ng==","fileCount":7,"unpackedSize":21471,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYql/CRA9TVsSAnZWagAA+W4P/2Rj3zZ7vzPAOm3CbW7x\nMSBVfISCtqlIZTkS/5pg17ukrgOboWelGScgsxnpdgBwCgc+w3RzKUkks4Yr\nFtoeJYyXcHZ7D8DAZaEr2AJZMZaI6bGylLsFe8Yb2e1m2/QrbXKA5JT98YXG\nS6XV30wKUs+0kdLWNLqp/ZdaXlNspfitlnoRPvcdMDkYCDZahI88AUjKBvcV\n7+AQX1BLu4ODvRpEi3w+PbBnXvxrImUYdAqvY7f3jeZiR6/Cfd7DtTy0yMFm\nSeTrGwBDQnZYXlEt3C/G1LY5Jj2MASGB04SIImm2B2JbGlko6VJRxhWbwSZv\nJVeUIbK884sVfhTDLk7s1kUJWTyu9KTZwxKUAuZKF3qrppfiRi/L5vBNWp1d\nTV42QkHpnzWRjzu25UxJN7ri77KXNkkQ1YARWQOeijyvT+1ggHo3V9P41ks6\n9roLnH4xS1bag7ReL0goyh16yjXS6X+8YjO5NLoQYky/XAmnI7kfTSPPxbBr\nV8u+EGfcjL7G2R8+ssjkrwtZ7Cvw821FOJV3IdBXn3LZj8KqhENeIM3HGBW7\n+sPS8rQqrsa1IqxyzFSA4+HOz/7hDQv4kO7Twq/Fi/q8+4m09MlDQoIemQ9C\nJpsIdIqCeCQbWnrRhah7bXMlcU3olwtsHrsez5v12IVxm1NtxAoY9jdTqxy4\nY3/i\r\n=AqV/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQHR9gaNcgvExlgG84sm0SwK7BIJXQX19hQdQGTBi9JAiEAuNt3NYLq7O6Eiuv+qAPXf5kL6zwgS7eyn8KnKvwNnV0="}],"size":5916,"noattachment":false,"key":"/json-future/-/json-future-2.1.4.tgz"},"maintainers":[{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-future_2.1.4_1549969790938_0.7702675308399334"},"_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":1549969791064,"_cnpm_publish_time":1549969791064,"dist-tags":{"latest":"2.2.28"}}