{"_id":"user-appdata","_rev":"4-da182c0755787ba18d235d9717511cc1","name":"user-appdata","description":"Load and save user application data with ease.","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"user-appdata","version":"0.1.0","description":"Load and save user application data with ease.","main":"lib/index.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"jscoverage":"^0.6.0","mocha":"^2.4.5","mocha-jshint":"^2.3.1","should":"^8.3.0"},"scripts":{"test":"node node_modules/mocha/bin/_mocha","coverage-lib-cov":"node node_modules/jscoverage/bin/jscoverage lib lib-cov","coverage-html":"node node_modules/mocha/bin/_mocha -R html-cov > coverage.html","coverage-cleanup":"rm lib-cov/*.*","coverage":"rm coverage.html && npm run coverage-lib-cov && npm run coverage-html && npm run coverage-cleanup"},"repository":{"type":"git","url":"git+https://github.com/s-a/user-appdata.git"},"keywords":["setup","config","configuration","settings","app-data","app_data","appdata","configs"],"author":{"name":"Stephan Ahlf","email":"stephan.ahlf@gmail.com","url":"https://github.com/s-a"},"license":"MIT","bugs":{"url":"https://github.com/s-a/user-appdata/issues"},"homepage":"https://github.com/s-a/user-appdata#readme","gitHead":"745bd7aac3a3856ea7a681f088462478c553cdcf","_id":"user-appdata@0.1.0","_shasum":"87987e4607dfa8b24b6b7aae72a6ba9cceaebc50","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"s-a","email":"stephan.ahlf@gmail.com"},"maintainers":[{"name":"s-a","email":"stephan.ahlf@gmail.com"}],"dist":{"shasum":"87987e4607dfa8b24b6b7aae72a6ba9cceaebc50","tarball":"https://registry.npmjs.org/user-appdata/-/user-appdata-0.1.0.tgz","integrity":"sha512-TtMOXXmX2XwPLI6lNOwHHtsNcKEy0RcGhUnPR6Gd0QeR+OJ1ohysChBjc0lI07h9Sv1tY51LX5hCnuFdDqZPjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZhDD1D+HiH+p+AxbRES0fvfUTumPeKemOX6Gy1COgvAiEAicWUvtdlh7SR6or0iVeJCASybZoLiRIScUxS7UWJtM0="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/user-appdata-0.1.0.tgz_1459969352304_0.9313012012280524"}},"0.1.2":{"name":"user-appdata","version":"0.1.2","description":"Load and save user application data with ease.","main":"lib/index.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"jscoverage":"^0.6.0","mocha":"^2.4.5","mocha-jshint":"^2.3.1","should":"^8.3.0"},"scripts":{"test":"node node_modules/mocha/bin/_mocha","bump":"npm version patch && git push && git push --tags && npm publish","coverage-lib-cov":"node node_modules/jscoverage/bin/jscoverage lib lib-cov","coverage-html":"node node_modules/mocha/bin/_mocha -R html-cov > coverage.html","coverage-cleanup":"rm lib-cov/*.*","coverage":"rm coverage.html && npm run coverage-lib-cov && npm run coverage-html && npm run coverage-cleanup"},"repository":{"type":"git","url":"git+https://github.com/s-a/user-appdata.git"},"keywords":["setup","config","configuration","settings","app-data","app_data","appdata","configs"],"author":{"name":"Stephan Ahlf","email":"stephan.ahlf@gmail.com","url":"https://github.com/s-a"},"license":"MIT","bugs":{"url":"https://github.com/s-a/user-appdata/issues"},"homepage":"https://github.com/s-a/user-appdata#readme","gitHead":"588a0ca6812281169a9c4f5a4770b74317605523","_id":"user-appdata@0.1.2","_shasum":"a317f471b6bbf9ae85e8ade05f091dca13fb8d51","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"s-a","email":"stephan.ahlf@gmail.com"},"maintainers":[{"name":"s-a","email":"stephan.ahlf@gmail.com"}],"dist":{"shasum":"a317f471b6bbf9ae85e8ade05f091dca13fb8d51","tarball":"https://registry.npmjs.org/user-appdata/-/user-appdata-0.1.2.tgz","integrity":"sha512-VvEukOfSkcHOSVy1L2qseiuLsvc6NII0c9kujUzrR6E79cGRVdTv6uGFAk+XJRPUFjVNIoVesFnjrnKlA1JlTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTdOBwXqS86kk2Rd25VMIDrqW6s7lVJL15rV8Zen70gAiBrkhFQSTHvzU5Dyk44HCu9PHOLb3jn6I7wUpOhCLSkMQ=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/user-appdata-0.1.2.tgz_1460006464089_0.3058606553822756"}}},"readme":"# user-appdata\r\n\r\n\r\n[![NPM Version](http://img.shields.io/npm/v/user-appdata.svg)](https://www.npmjs.org/package/user-appdata)\r\n[![Build Status](https://travis-ci.org/s-a/user-appdata.svg)](https://travis-ci.org/s-a/user-appdata)\r\n[![Coverage Status](https://coveralls.io/repos/github/s-a/user-appdata/badge.svg?branch=master)](https://coveralls.io/github/s-a/user-appdata?branch=master)\r\n[![Codacy Badge](https://api.codacy.com/project/badge/grade/b90f442f62ae44a4b95a07cbdd69fb85)](https://www.codacy.com/app/stephanahlf/user-appdata)\r\n[![Dependency Status](https://david-dm.org/s-a/user-appdata.svg)](https://david-dm.org/s-a/user-appdata)\r\n[![devDependency Status](https://david-dm.org/s-a/user-appdata/dev-status.svg)](https://david-dm.org/s-a/user-appdata#info=devDependencies)\r\n[![NPM Downloads](https://img.shields.io/npm/dm/user-appdata.svg)](https://www.npmjs.org/package/user-appdata)\r\n[![Massachusetts Institute of Technology (MIT)](https://s-a.github.io/license/img/mit.svg)](/LICENSE.md#mit)\r\n[![Donate](http://s-a.github.io/donate/donate.svg)](http://s-a.github.io/donate/)\r\n\r\n\r\nLoad and save application data platform independent without additional configuration based on the current users system ```APP_DATA``` folder.\r\n\r\n\r\n## Contructor parms\r\n - appname (not optional) - A unique app name. Best one is the ```name``` property from your ```package.json```.\r\n - filename (optional) - Default ```config.json```.\r\n - defaultSettings (optional).\r\n\r\n\r\n\r\n## Methods\r\n - ```load()```\r\n - ```save()```\r\n - ```uninstall()```\r\n - ```setConfigFilename(filename /* string */)```\r\n\r\n### Example\r\n```javascript\r\nvar Config = require(\"app-userdata\");\r\nvar config = new Config({appname : \"myApp\", defaultSettings : {\"foo\" : \"bar\"}});\r\nconsole.log(config);\r\n```\r\n\r\n### Yields on Microsoft Windows:\r\n```javascript\r\n{\r\n\tsettings: {\r\n\t\tfoo: 'bar'\r\n\t},\r\n\tappName: 'myApp',\r\n\tdataFolder: 'C:\\\\Users\\\\Stephan\\\\AppData\\\\Roaming\\\\myApp',\r\n\tfilename: 'C:\\\\Users\\\\Stephan\\\\AppData\\\\Roaming\\\\myApp\\\\config.json' \r\n}\r\n```","maintainers":[{"name":"s-a","email":"stephan.ahlf@gmail.com"}],"time":{"modified":"2022-06-28T06:45:38.909Z","created":"2016-04-06T19:02:34.724Z","0.1.0":"2016-04-06T19:02:34.724Z","0.1.2":"2016-04-07T05:21:06.522Z"},"homepage":"https://github.com/s-a/user-appdata#readme","keywords":["setup","config","configuration","settings","app-data","app_data","appdata","configs"],"repository":{"type":"git","url":"git+https://github.com/s-a/user-appdata.git"},"author":{"name":"Stephan Ahlf","email":"stephan.ahlf@gmail.com","url":"https://github.com/s-a"},"bugs":{"url":"https://github.com/s-a/user-appdata/issues"},"license":"MIT","readmeFilename":"README.md"}