-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
96 lines (96 loc) · 5.06 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"_args": [
[
{
"raw": "configstore@https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"scope": null,
"escapedName": "configstore",
"name": "configstore",
"rawSpec": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"spec": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "configstore@https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"_id": "configstore@3.1.1",
"_inCache": true,
"_location": "/firebase-admin/configstore",
"_phantomChildren": {
"is-obj": "1.0.1"
},
"_requested": {
"raw": "configstore@https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"scope": null,
"escapedName": "configstore",
"name": "configstore",
"rawSpec": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"spec": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/gcs-resumable-upload"
],
"_resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"_shasum": "094ee662ab83fad9917678de114faaea8fcdca90",
"_shrinkwrap": null,
"_spec": "configstore@https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/yeoman/configstore/issues"
},
"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"
},
"description": "Easily load and save config without having to think about where and how",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/yeoman/configstore#readme",
"keywords": [
"config",
"store",
"storage",
"conf",
"configuration",
"settings",
"preferences",
"json",
"data",
"persist",
"persistent",
"save"
],
"license": "BSD-2-Clause",
"name": "configstore",
"optionalDependencies": {},
"readme": "# 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",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/yeoman/configstore.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "3.1.1"
}