{"name":"configstore","version":"3.1.4","description":"Easily load and save config without having to think about where and how","license":"BSD-2-Clause","repository":{"type":"git","url":"git+https://github.com/yeoman/configstore.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"keywords":["config","store","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save"],"dependencies":{"dot-prop-legacy":"^4.2.1","graceful-fs":"^4.1.2","make-dir":"^1.0.0","unique-string":"^1.0.0","write-file-atomic":"^2.0.0","xdg-basedir":"^3.0.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.20.3"},"readme":"# configstore [![Build Status](https://travis-ci.org/yeoman/configstore.svg?branch=legacy-v3)](https://travis-ci.org/yeoman/configstore)\n\n> Easily load and persist config without having to think about where and how\n\nConfig is stored in a JSON file located in `$XDG_CONFIG_HOME` or `~/.config`.<br>\nExample: `~/.config/configstore/some-id.json`\n\n*If you need this for Electron, check out [`electron-store`](https://github.com/sindresorhus/electron-store) instead.*\n\n\n## Usage\n\n```js\nconst Configstore = require('configstore');\nconst pkg = require('./package.json');\n\n// create a Configstore instance with an unique ID e.g.\n// Package name and optionally some default values\nconst conf = new Configstore(pkg.name, {foo: 'bar'});\n\nconsole.log(conf.get('foo'));\n//=> 'bar'\n\nconf.set('awesome', true);\nconsole.log(conf.get('awesome'));\n//=> true\n\n// Use dot-notation to access nested properties\nconf.set('bar.baz', true);\nconsole.log(conf.get('bar'));\n//=> {baz: true}\n\nconf.delete('awesome');\nconsole.log(conf.get('awesome'));\n//=> undefined\n```\n\n\n## API\n\n### Configstore(packageName, [defaults], [options])\n\nReturns a new instance.\n\n#### packageName\n\nType: `string`\n\nName of your package.\n\n#### defaults\n\nType: `Object`\n\nDefault config.\n\n#### options\n\n##### globalConfigPath\n\nType: `boolean`<br>\nDefault: `false`\n\nStore the config at `$CONFIG/package-name/config.json` instead of the default `$CONFIG/configstore/package-name.json`. This is not recommended as you might end up conflicting with other tools, rendering the \"without having to think\" idea moot.\n\n### Instance\n\nYou can use [dot-notation](https://github.com/sindresorhus/dot-prop) in a `key` to access nested properties.\n\n### .set(key, value)\n\nSet an item.\n\n### .set(object)\n\nSet multiple items at once.\n\n### .get(key)\n\nGet an item.\n\n### .has(key)\n\nCheck if an item exists.\n\n### .delete(key)\n\nDelete an item.\n\n### .clear()\n\nDelete all items.\n\n### .size\n\nGet the item count.\n\n### .path\n\nGet the path to the config file. Can be used to show the user where the config file is located or even better open it for them.\n\n### .all\n\nGet all the config as an object or replace the current config with an object:\n\n```js\nconf.all = {\n\thello: 'world'\n};\n```\n\n\n## License\n\n[BSD license](http://opensource.org/licenses/bsd-license.php)<br>\nCopyright Google\n","readmeFilename":"readme.md","gitHead":"4c36f27901257071fd1b0f5e3c9c4a21eabb546d","bugs":{"url":"https://github.com/yeoman/configstore/issues"},"homepage":"https://github.com/yeoman/configstore#readme","_id":"configstore@3.1.4","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-0zrqA+vOj4tKAFjho2DjcPby8YNYvU0g2fJLusolvRxpeC3qzfLTrTdPK1/lreiOd2J6prloAR6dcXhcr7mJEw==","shasum":"596122c2e5d47630438a3f622156be3a771a82a4","tarball":"http://registry-npm.ywwl.com/configstore/download/configstore-3.1.4.tgz","fileCount":4,"unpackedSize":6957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNuSMCRA9TVsSAnZWagAASg4P/3gfDFOxhLSEjA2WLHnM\nqz5juF3+kaTD/YBuCGZEP45dWR+1jZH8BLxQFrgX0P3GcY/n1PE70lKpNnzM\nq8siUljEzmqPiWUUk/KQyQrEZVb0+m3V7S2Z6kVWXvj6lMB/fjuJaM2MoIgj\nmn1fLBmO3+7GSh34Hvxnk2a2VSoHihAEOBwZguAFY16EaGTPXllqPr3t+DYT\np+gv10TO7IfmljjKqLPKEvimdocXqjSenbGCr62u1cAl2etH9XxC1mWM3HJn\n1xMiatP/XXSgSaDZZPACmjyW/VkvUzwXvNIA51zvvHsv7Y9axTb97oDCwFPC\nFMz7HbJT28MMdKox1TKzYQrUebjPRefoh697H2SNUV62lWZOX110hwEJOxNb\nGWcH2qE3n+ixKO+WDv15IIq3QoFL/QUXuQTz4I5x2JxkB9OMXqIR6Lilv06E\n39eV0Y1gmDN4vrJyuEb9Nc5qCKBL2c+C5YgsY4hkSbJi2BNLWdqNjwcZ4K2G\nQz9FKAAZyFdYGqmkLQfFvniEb41OD/GKlaOseo6zuos9T1kyTv2yIRIe3MGQ\nGtiG0GBWQLdsMqNq6aDe2Xgsi5cS4t0VUw97ZzAnWLiGsxc1raDYW9dGyJ8N\nnH5dO5kPU3npEHjmOJUpecyxgvZMiu5vJaiiveQiXtVLSUiEBFM1NBqjBxpG\nicx7\r\n=7Xhx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwY2QvRBxO43UxcajkS5Z2gwLrEG+YBy060xrk0z6p+AiEAnADbkZsUrlXOHdSkFJY6pw8+8dDrLdeVNHo2BiG9f+E="}],"size":3088,"noattachment":false,"key":"/configstore/-/configstore-3.1.4.tgz"},"maintainers":[{"email":"addyosmani@gmail.com","name":"addyosmani"},{"email":"eddie+npm@eddiemonge.com","name":"eddiemonge"},{"email":"mail@michael-kuehnel.de","name":"mischah"},{"email":"marceloshima@gmail.com","name":"mshima"},{"email":"ruyadorno@hotmail.com","name":"ruyadorno"},{"email":"admin@simonboudrias.com","name":"sboudrias"},{"email":"sindresorhus@gmail.com","name":"sindresorhus"},{"email":"ulisesgascondev@gmail.com","name":"ulisesgascon"},{"email":"mehdy.dara.fr@gmail.com","name":"zckrs"}],"_npmUser":{"name":"ruyadorno","email":"ruyadorno@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/configstore_3.1.4_1597432972222_0.40943515921986817"},"_hasShrinkwrap":false,"publish_time":1597432972342,"_cnpm_publish_time":1597432972342,"dist-tags":{"latest":"8.0.0","legacy-v3":"3.1.5"}}