{"_id":"dotless-conf","_rev":"5-fc5a7db94429d1cebbb3064295b2f144","name":"dotless-conf","description":"Simple dotless config handling for your app or module","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"dotless-conf","version":"0.0.0","description":"Simple dotless config handling for your app or module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dawsonbotsford/conf.git"},"author":{"name":"Dawson Botsford","email":"dawsonbotsford@gmail.com","url":"dawsonbotsford.com"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["config","store","app","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save","load","read","write"],"dependencies":{"env-paths":"^0.3.0","mkdirp":"^0.5.1","pkg-up":"^1.0.0"},"devDependencies":{"ava":"*","del":"^2.2.1","tempfile":"^1.1.1","xo":"*"},"xo":{"esnext":true},"gitHead":"e0acf9b5bd97f816cb6cc2fe963ff934019f26ad","bugs":{"url":"https://github.com/dawsonbotsford/conf/issues"},"homepage":"https://github.com/dawsonbotsford/conf#readme","_id":"dotless-conf@0.0.0","_shasum":"c7b82da9f038d736f482f190945cc91be7224d55","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"},"dist":{"shasum":"c7b82da9f038d736f482f190945cc91be7224d55","tarball":"https://registry.npmjs.org/dotless-conf/-/dotless-conf-0.0.0.tgz","integrity":"sha512-2f/lFEN6QCwvEuQxDX5BdwnGBrIgz+OIYdYDUDC9/ASyXQNEqvZVcjPUOlTItOAayxFrVrNcuFFULKqgEYN6Nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDnoY6NNRHiRro7agbEkZhIel3GMzZjdIKDxqiEf3up4AIgCtdbEqe5EyC56HMS4N5gwiqWrUZURgGWkVNL1qYnBv8="}]},"maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/dotless-conf-0.0.0.tgz_1473035219993_0.5846455150749534"},"directories":{}},"1.0.0":{"name":"dotless-conf","version":"1.0.0","description":"Simple dotless config handling for your app or module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/dawsonbotsford/conf.git"},"author":{"name":"Dawson Botsford","email":"dawsonbotsford@gmail.com","url":"dawsonbotsford.com"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["config","store","app","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save","load","read","write"],"dependencies":{"env-paths":"^0.3.0","make-dir":"^1.2.0","mkdirp":"^0.5.1","pkg-up":"^2.0.0","write-file-atomic":"^2.3.0"},"devDependencies":{"ava":"*","clear-module":"^2.1.0","del":"^3.0.0","tempfile":"^1.1.1","tempy":"^0.2.1","xo":"*"},"xo":{"esnext":true},"gitHead":"d23de0b54e1b9c005a11c702e1d52773ba3b9ffd","bugs":{"url":"https://github.com/dawsonbotsford/conf/issues"},"homepage":"https://github.com/dawsonbotsford/conf#readme","_id":"dotless-conf@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.8.0","_npmUser":{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"},"dist":{"integrity":"sha512-73FfIvEJMVBzO1qz1t6D/L4zjBaN5m+WUR31CRlEsaYOqaa0m6RasUXS9XaZfffNuy5iUkb8FzakkUX1P5GZCw==","shasum":"372649b8569104b3806d2c84f9f08ed38db8d0c4","tarball":"https://registry.npmjs.org/dotless-conf/-/dotless-conf-1.0.0.tgz","fileCount":4,"unpackedSize":8697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1OHqCRA9TVsSAnZWagAAuk8P/1M1UowwGxMSk/ORRKft\nRNvdD+Fkw2sGEDg/5kYv6e/h+vOcKSw/THcn25q+ECWXZXJrdAmCvIBTi6Ip\nRS7GwNG01OFxUNt0XVEfYmee7SLGzXZhydwRFZJZfDlsYLwThHqx9zatYNIF\nU1u+ey7hLH482mikxqXsl7qHtxohyWLe4R23GuydLJZ4u/RFboZ5iNYAU6j3\nbAIOrx6BKlS9PL4WV60jcMiRjiuJrVz5PnJfJph4t0MkL3eq5bK7XG+wYkBL\nMZM8EyFYgX9vc77y8zgDGIZJGx4jnvzXtNXk8pu54MlyE7HTGRsrRvWsc+Qp\nPQzcgofDpEm48IS3BJwrmUANt3UHtBBOuWOduZCtE9xgECUkmgSGFgCTzek9\n8H3unP+FYenFOBmXkrAMcRnYX/xUQTI1XbpTOrM+KS+dJ7l2Dwx0YdmsX477\n3ZFs8D/3mB78ewkVRdo5gXQBxuF/f5efHUNB8zSV+IZcHkqGAOccCDXbP6UB\nZOG4+vgu7JVKKC+Ef2le2iOp8b1XcGbiuQ74S9USa940TgdEy0I8Eeet5D3N\nmeC3NVsjqJFxrHZBCnYg4GrnAsklTCpx2hrIr0jaH67kzkQR+hIs12+uYcpY\n2N27vWbQpjL6jxrJC2urq1S50YOAIUaTusu8hFAF2MbFempduEgu2ZIWXBcM\nKDyL\r\n=0dsh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpDCscJ/DGf/WAhkYhebyoZ++zvBvRX+ZOPzSzof+8oAiEAvFlBsdx4IexeXW8cuODDl7zTADrzdSYgj/84K8V8qCs="}]},"maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dotless-conf_1.0.0_1523900906217_0.09039620100368562"},"_hasShrinkwrap":false}},"readme":"# dotless-conf [![Build Status: Linux and macOS](https://travis-ci.org/dawsbot/dotless-conf.svg?branch=master)](https://travis-ci.org/dawsbot/dotless-conf)\n\n> Hard fork of sindresorhus's \"conf\" in order to remove dot props\n\n> Simple config handling for your app or module\n\nAll you have to care about is what to persist. This module will handle all the dull details like where and how.\n\n## Install\n\n```\n$ npm install --save dotless-conf\n```\n\n\n## Usage\n\n```js\nconst Conf = require('dotless-conf');\nconst config = new Conf();\n\nconfig.set('unicorn', '🦄');\nconsole.log(config.get('unicorn'));\n//=> '🦄'\n\n// use dot-notation to access nested properties\nconfig.set('foo.bar', true);\nconsole.log(config.get('foo'));\n//=> {bar: true}\n\nconfig.delete('unicorn');\nconsole.log(config.get('unicorn'));\n//=> undefined\n```\n\n## Why diverge from conf?\n\nWhen reading and writing an object to a file, you don't always want to support nested object properties\n\n```js\n// with \"conf\"\n// use dot-notation to access nested properties\nconfig.set('foo.bar', true);\nconsole.log(config.get('foo'));\n//=> {bar: true}\n\n// with \"dotless-conf\"\nconfig.set('foo.bar', true);\nconsole.log(config.get('foo'));\n//=> undefined\nconsole.log(config.get('foo.bar'));\n//=> true\n```\n\n## API\n\n### Conf([options])\n\nReturns a new instance.\n\n### options\n\n#### defaults\n\nType: `Object`\n\nDefault config.\n\n#### configName\n\nType: `string`<br>\nDefault: `config`\n\nName of the config file (without extension).\n\nUseful if you need multiple config files for your app or module. For example, different config files between two major versions.\n\n#### projectName\n\nType: `string`<br>\nDefault: The `name` field in your package.json\n\nYou only need to specify this if you don't have a package.json file in your project.\n\n#### cwd\n\nType: `string`<br>\nDefault: System default [user config directory](https://github.com/dawsonbotsford/env-paths#pathsconfig)\n\n**You most likely don't need this.**\n\nOverrides `projectName`.\n\nThe only use-case I can think of is having the config located in the app directory or on some external storage.\n\n### Instance\n\nThe instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop.\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#### .store\n\nGet all the config as an object or replace the current config with an object:\n\n```js\nconf.store = {\n\thello: 'world'\n};\n```\n\n#### .path\n\nGet the path to the config file.\n\n## Related\n\n- [conf](https://github.com/sindresorhus/conf)\n\n## License\n\nMIT © [Dawson Botsford](https://dawsonbotsford.com)\n","maintainers":[{"name":"dawsonbotsford","email":"dawsonbotsford@gmail.com"}],"time":{"modified":"2022-06-15T22:38:29.852Z","created":"2016-09-05T00:27:02.313Z","0.0.0":"2016-09-05T00:27:02.313Z","1.0.0":"2018-04-16T17:48:26.291Z"},"homepage":"https://github.com/dawsonbotsford/conf#readme","keywords":["config","store","app","storage","conf","configuration","settings","preferences","json","data","persist","persistent","save","load","read","write"],"repository":{"type":"git","url":"git+https://github.com/dawsonbotsford/conf.git"},"author":{"name":"Dawson Botsford","email":"dawsonbotsford@gmail.com","url":"dawsonbotsford.com"},"bugs":{"url":"https://github.com/dawsonbotsford/conf/issues"},"license":"MIT","readmeFilename":"readme.md"}