Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/readme.md

Issue 800513006: Added vulcanize under third_party/npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/readme.md
diff --git a/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/readme.md b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/readme.md
new file mode 100644
index 0000000000000000000000000000000000000000..1d94848105d7b632a4e0d4916b9a63dcd0ac40e1
--- /dev/null
+++ b/node_modules/vulcanize/node_modules/update-notifier/node_modules/configstore/readme.md
@@ -0,0 +1,67 @@
+# configstore [![Build Status](https://secure.travis-ci.org/yeoman/configstore.svg?branch=master)](http://travis-ci.org/yeoman/configstore)
+
+Easily load and persist config without having to think about where and how.
+
+Config is stored in a YAML file to make it simple for users to edit the config directly themselves. The file is located in `$XDG_CONFIG_HOME` or `~/.config`. Eg: `~/.config/configstore/id-of-your-choosing.yml`
+
+
+## Example usage
+
+```js
+var Configstore = require('configstore');
+var packageName = require('./package').name;
+
+// Init a Configstore instance with an unique ID eg. package name
+// and optionally some default values
+var conf = new Configstore(packageName, { foo: 'bar' });
+
+conf.set('awesome', true);
+console.log(conf.get('awesome')); // true
+console.log(conf.get('foo')); // bar
+
+conf.del('awesome');
+console.log(conf.get('awesome')); // undefined
+```
+
+
+## Documentation
+
+### Methods
+
+#### .set(key, val)
+
+Set an item
+
+#### .get(key)
+
+Get an item
+
+#### .del(key)
+
+Delete an item
+
+### Properties
+
+#### .all
+
+Get all items as an object or replace the current config with an object:
+
+```js
+conf.all = {
+ hello: 'world'
+};
+```
+
+#### .size
+
+Get the item count
+
+#### .path
+
+Get 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.
+
+
+## License
+
+[BSD license](http://opensource.org/licenses/bsd-license.php)
+Copyright Google

Powered by Google App Engine
This is Rietveld 408576698