-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 3.9 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
{
"_args": [
[
{
"raw": "dot-prop@https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"scope": null,
"escapedName": "dot-prop",
"name": "dot-prop",
"rawSpec": "https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"spec": "https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "dot-prop@https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"_id": "dot-prop@2.4.0",
"_inCache": true,
"_location": "/firebase-admin/dot-prop",
"_phantomChildren": {},
"_requested": {
"raw": "dot-prop@https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"scope": null,
"escapedName": "dot-prop",
"name": "dot-prop",
"rawSpec": "https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"spec": "https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/@google-cloud/common-grpc"
],
"_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.tgz",
"_shasum": "848e28f7f1d50740c6747ab3cb07670462b6f89c",
"_shrinkwrap": null,
"_spec": "dot-prop@https://registry.npmjs.org/dot-prop/-/dot-prop-2.4.0.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/sindresorhus/dot-prop/issues"
},
"dependencies": {
"is-obj": "^1.0.0"
},
"description": "Get, set, or delete a property from a nested object using a dot path",
"devDependencies": {
"ava": "*",
"matcha": "^0.6.1",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/dot-prop#readme",
"keywords": [
"obj",
"object",
"prop",
"property",
"dot",
"path",
"get",
"set",
"delete",
"del",
"access",
"notation",
"dotty"
],
"license": "MIT",
"name": "dot-prop",
"optionalDependencies": {},
"readme": "# dot-prop [![Build Status](https://travis-ci.org/sindresorhus/dot-prop.svg?branch=master)](https://travis-ci.org/sindresorhus/dot-prop)\n\n> Get, set, or delete a property from a nested object using a dot path\n\n\n## Install\n\n```\n$ npm install --save dot-prop\n```\n\n\n## Usage\n\n```js\nconst dotProp = require('dot-prop');\n\n// getter\ndotProp.get({foo: {bar: 'unicorn'}}, 'foo.bar');\n//=> 'unicorn'\n\ndotProp.get({foo: {bar: 'a'}}, 'foo.notDefined.deep');\n//=> undefined\n\ndotProp.get({foo: {'dot.dot': 'unicorn'}}, 'foo.dot\\\\.dot');\n//=> 'unicorn'\n\n// setter\nconst obj = {foo: {bar: 'a'}};\ndotProp.set(obj, 'foo.bar', 'b');\nconsole.log(obj);\n//=> {foo: {bar: 'b'}}\n\ndotProp.set(obj, 'foo.baz', 'x');\nconsole.log(obj);\n//=> {foo: {bar: 'b', baz: 'x'}}\n\n// deleter\nconst obj = {foo: {bar: 'a'}};\ndotProp.delete(obj, 'foo.bar');\nconsole.log(obj);\n//=> {foo: {}}\n\nobj.foo.bar = {x: 'y', y: 'x'};\ndotProp.delete(obj, 'foo.bar.x');\nconsole.log(obj);\n//=> {foo: {bar: {y: 'x'}}}\n```\n\n\n## API\n\n### get(obj, path)\n\n### set(obj, path, value)\n\n### delete(obj, path)\n\n#### obj\n\nType: `object`\n\nObject to get, set, or delete the `path` value.\n\n#### path\n\nType: `string`\n\nPath of the property in the object. Use `.` for nested objects or `\\\\.` to add a `.` in a key.\n\n#### value\n\nType: `any`\n\nValue to set at `path`.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/dot-prop.git"
},
"scripts": {
"bench": "matcha bench.js",
"test": "ava && xo"
},
"version": "2.4.0"
}