{"_id":"configstore-fork","_rev":"270540","name":"configstore-fork","description":"Easily load and save config without having to think about where and how","dist-tags":{"latest":"3.1.6"},"maintainers":[{"name":"jason-dent","email":""}],"time":{"modified":"2023-09-20T16:51:06.000Z","created":"2018-01-24T05:14:05.735Z","3.1.6":"2018-01-24T05:51:21.721Z","3.1.5":"2018-01-24T05:25:42.573Z","3.1.3":"2018-01-24T05:14:05.735Z"},"users":{},"author":{"name":"Jason Dent"},"repository":{"type":"git","url":"git+https://github.com/jason3s/configstore.git"},"versions":{"3.1.6":{"name":"configstore-fork","version":"3.1.6","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/jason3s/configstore.git"},"author":{"name":"Jason Dent"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"typings":"index.d.ts","files":["index.js","index.d.ts"],"keywords":["config","store","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save"],"dependencies":{"dot-prop":"^4.1.0","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":"*","xo":"*"},"gitHead":"e3ca0c5767e25445f087a446a61b1294018b99ed","bugs":{"url":"https://github.com/jason3s/configstore/issues"},"homepage":"https://github.com/jason3s/configstore#readme","_id":"configstore-fork@3.1.6","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"24de4e9c0f33449c6251d90eeab5be4758e632cf","size":3089,"noattachment":false,"key":"/configstore-fork/-/configstore-fork-3.1.6.tgz","tarball":"http://name.csiicloud.com:7001/configstore-fork/download/configstore-fork-3.1.6.tgz"},"maintainers":[{"name":"jason-dent","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/configstore-fork-3.1.6.tgz_1516773080837_0.41180490888655186"},"directories":{},"publish_time":1516773081721,"_hasShrinkwrap":false,"deprecated":"Deprecated. Please use original configstore.","_cnpm_publish_time":1516773081721,"_cnpmcore_publish_time":"2021-12-16T18:56:55.096Z"},"3.1.5":{"name":"configstore-fork","version":"3.1.5","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"},"typings":"index.d.ts","files":["index.js","index.d.ts"],"keywords":["config","store","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save"],"dependencies":{"dot-prop":"^4.1.0","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":"*","xo":"*"},"gitHead":"cab738e84ccf1afcc125d2c635e00b2d78471cde","bugs":{"url":"https://github.com/yeoman/configstore/issues"},"homepage":"https://github.com/yeoman/configstore#readme","_id":"configstore-fork@3.1.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"7cb95b6bfec857e98b91ebc44ec1acd471f57993","size":3073,"noattachment":false,"key":"/configstore-fork/-/configstore-fork-3.1.5.tgz","tarball":"http://name.csiicloud.com:7001/configstore-fork/download/configstore-fork-3.1.5.tgz"},"maintainers":[{"name":"jason-dent","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/configstore-fork-3.1.5.tgz_1516771541681_0.7610238343477249"},"directories":{},"publish_time":1516771542573,"_hasShrinkwrap":false,"deprecated":"Deprecated. Please use original configstore.","_cnpm_publish_time":1516771542573,"_cnpmcore_publish_time":"2021-12-16T18:56:55.288Z"},"3.1.3":{"name":"configstore-fork","version":"3.1.3","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"},"files":["index.js"],"keywords":["config","store","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save"],"dependencies":{"dot-prop":"^4.1.0","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":"*","xo":"*"},"gitHead":"101c774d74ad458618ee26a9825bc1da1b958154","bugs":{"url":"https://github.com/yeoman/configstore/issues"},"homepage":"https://github.com/yeoman/configstore#readme","_id":"configstore-fork@3.1.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"jason-dent","email":"jason@streetsidesoftware.nl"},"dist":{"shasum":"e9731014c43bc1332217ab5f90078093170ccad8","size":2569,"noattachment":false,"key":"/configstore-fork/-/configstore-fork-3.1.3.tgz","tarball":"http://name.csiicloud.com:7001/configstore-fork/download/configstore-fork-3.1.3.tgz"},"maintainers":[{"name":"jason-dent","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/configstore-fork-3.1.3.tgz_1516770844602_0.3964316847268492"},"directories":{},"publish_time":1516770845735,"_hasShrinkwrap":false,"deprecated":"Deprecated. Please use original configstore.","_cnpm_publish_time":1516770845735,"_cnpmcore_publish_time":"2021-12-16T18:56:55.524Z"}},"readme":"# Note this is a fork of [configstore](https://github.com/yeoman/configstore)\n\nThis fork only contains minor differences:\n1. Reads are side effect free\n1. Only create the store directory on write if it does not exist\n1. Only writes to the store if there is something to write\n\nThis fork is not meant to be a general replacement for [configstore](https://github.com/yeoman/configstore).\nIt was solely created to solve issues relating to the changes above.\nAll credit for this package should go to the original authors.\n\n# configstore [![Build Status](https://travis-ci.org/yeoman/configstore.svg?branch=master)](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","_attachments":{},"homepage":"https://github.com/jason3s/configstore#readme","bugs":{"url":"https://github.com/jason3s/configstore/issues"},"license":"BSD-2-Clause"}