-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
81 lines (81 loc) · 3.72 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
{
"_args": [
[
{
"raw": "methmeth@https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"scope": null,
"escapedName": "methmeth",
"name": "methmeth",
"rawSpec": "https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"spec": "https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "methmeth@https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"_id": "methmeth@1.1.0",
"_inCache": true,
"_location": "/firebase-admin/methmeth",
"_phantomChildren": {},
"_requested": {
"raw": "methmeth@https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"scope": null,
"escapedName": "methmeth",
"name": "methmeth",
"rawSpec": "https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"spec": "https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/@google-cloud/common"
],
"_resolved": "https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"_shasum": "e80a26618e52f5c4222861bb748510bd10e29089",
"_shrinkwrap": null,
"_spec": "methmeth@https://registry.npmjs.org/methmeth/-/methmeth-1.1.0.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Stephen Sawchuk",
"email": "sawchuk@gmail.com",
"url": "http://stephenplusplus.com"
},
"bugs": {
"url": "https://github.com/stephenplusplus/methmeth/issues"
},
"dependencies": {},
"description": "Execute a method out from an object.",
"devDependencies": {
"mocha": "^2.2.5"
},
"files": [
"index.js",
"license"
],
"homepage": "https://github.com/stephenplusplus/methmeth#readme",
"keywords": [
"prop",
"property",
"pluck",
"method",
"meth",
"execute",
"array",
"iterator"
],
"license": "MIT",
"main": "index.js",
"name": "methmeth",
"optionalDependencies": {},
"readme": "# methmeth\n> Call a method on an object in an Array.prototype callback.\n\n\n```sh\n$ npm install --save methmeth\n```\n```js\nvar meth = require('methmeth');\n\nvar friends = [\n {\n name: 'passy',\n hobby: 'carrots',\n getInfo: function () {\n return this.name + ' likes ' + this.hobby;\n }\n },\n {\n name: 'sindre',\n vehicle: 'unicorn taxi',\n getInfo: function () {\n return this.name + ' drives a ' + this.vehicle;\n }\n },\n {\n name: 'addy',\n invented: 'google *',\n getInfo: function () {\n return this.name + ' created ' + this.invented;\n }\n }\n];\n```\n\n#### Before\n```js\nvar myFriends = friends.map(function (item) {\n return item.getInfo();\n}).join('\\n');\n// passy likes carrots\n// sindre drives a unicorn taxi\n// addy created google *\n```\n\n#### After\n```js\nfriends.map(meth('getInfo')).join('\\n');\n// passy likes carrots\n// sindre drives a unicorn taxi\n// addy created google *\n```\n\n#### Pre-fill arguments\n```js\nvar friends = [\n {\n name: 'dave',\n passion: 'dried mango',\n getInfo: function (emotion) {\n return this.name + ' loves ' + this.passion + emotion;\n }\n }\n];\n\nfriends.map(meth('getInfo', '!!!!')).join('\\n');\n// dave loves dried mango!!!!\n```\n\n#### Related\n\n- [propprop](https://github.com/stephenplusplus/propprop) - Pluck a property out of an object in an Array.prototype callback.\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/stephenplusplus/methmeth.git"
},
"scripts": {
"test": "mocha"
},
"version": "1.1.0"
}