119 lines
3.7 KiB
JSON
119 lines
3.7 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
{
|
|
"raw": "concat-map@0.0.1",
|
|
"scope": null,
|
|
"escapedName": "concat-map",
|
|
"name": "concat-map",
|
|
"rawSpec": "0.0.1",
|
|
"spec": "0.0.1",
|
|
"type": "version"
|
|
},
|
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/brace-expansion"
|
|
]
|
|
],
|
|
"_from": "concat-map@0.0.1",
|
|
"_id": "concat-map@0.0.1",
|
|
"_inCache": true,
|
|
"_location": "/concat-map",
|
|
"_npmUser": {
|
|
"name": "substack",
|
|
"email": "mail@substack.net"
|
|
},
|
|
"_npmVersion": "1.3.21",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"raw": "concat-map@0.0.1",
|
|
"scope": null,
|
|
"escapedName": "concat-map",
|
|
"name": "concat-map",
|
|
"rawSpec": "0.0.1",
|
|
"spec": "0.0.1",
|
|
"type": "version"
|
|
},
|
|
"_requiredBy": [
|
|
"/brace-expansion"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
|
"_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
|
|
"_shrinkwrap": null,
|
|
"_spec": "concat-map@0.0.1",
|
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/brace-expansion",
|
|
"author": {
|
|
"name": "James Halliday",
|
|
"email": "mail@substack.net",
|
|
"url": "http://substack.net"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/substack/node-concat-map/issues"
|
|
},
|
|
"dependencies": {},
|
|
"description": "concatenative mapdashery",
|
|
"devDependencies": {
|
|
"tape": "~2.4.0"
|
|
},
|
|
"directories": {
|
|
"example": "example",
|
|
"test": "test"
|
|
},
|
|
"dist": {
|
|
"shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
|
|
"tarball": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
|
|
},
|
|
"homepage": "https://github.com/substack/node-concat-map#readme",
|
|
"keywords": [
|
|
"concat",
|
|
"concatMap",
|
|
"map",
|
|
"functional",
|
|
"higher-order"
|
|
],
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"maintainers": [
|
|
{
|
|
"name": "substack",
|
|
"email": "mail@substack.net"
|
|
}
|
|
],
|
|
"name": "concat-map",
|
|
"optionalDependencies": {},
|
|
"readme": "concat-map\n==========\n\nConcatenative mapdashery.\n\n[![browser support](http://ci.testling.com/substack/node-concat-map.png)](http://ci.testling.com/substack/node-concat-map)\n\n[![build status](https://secure.travis-ci.org/substack/node-concat-map.png)](http://travis-ci.org/substack/node-concat-map)\n\nexample\n=======\n\n``` js\nvar concatMap = require('concat-map');\nvar xs = [ 1, 2, 3, 4, 5, 6 ];\nvar ys = concatMap(xs, function (x) {\n return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];\n});\nconsole.dir(ys);\n```\n\n***\n\n```\n[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]\n```\n\nmethods\n=======\n\n``` js\nvar concatMap = require('concat-map')\n```\n\nconcatMap(xs, fn)\n-----------------\n\nReturn an array of concatenated elements by calling `fn(x, i)` for each element\n`x` and each index `i` in the array `xs`.\n\nWhen `fn(x, i)` returns an array, its result will be concatenated with the\nresult array. If `fn(x, i)` returns anything else, that value will be pushed\nonto the end of the result array.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install concat-map\n```\n\nlicense\n=======\n\nMIT\n\nnotes\n=====\n\nThis module was written while sitting high above the ground in a tree.\n",
|
|
"readmeFilename": "README.markdown",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/substack/node-concat-map.git"
|
|
},
|
|
"scripts": {
|
|
"test": "tape test/*.js"
|
|
},
|
|
"testling": {
|
|
"files": "test/*.js",
|
|
"browsers": {
|
|
"ie": [
|
|
6,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"ff": [
|
|
3.5,
|
|
10,
|
|
15
|
|
],
|
|
"chrome": [
|
|
10,
|
|
22
|
|
],
|
|
"safari": [
|
|
5.1
|
|
],
|
|
"opera": [
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.1"
|
|
}
|