| 1 |
{ |
| 2 |
"_id": "concat-map", |
| 3 |
"_rev": "7-0c8e4d38de42e94c53f5313a84c313f4", |
| 4 |
"name": "concat-map", |
| 5 |
"description": "concatenative mapdashery", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "0.0.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.0": { |
| 11 |
"name": "concat-map", |
| 12 |
"description": "concatenative mapdashery", |
| 13 |
"version": "0.0.0", |
| 14 |
"repository": { |
| 15 |
"type": "git", |
| 16 |
"url": "git://github.com/substack/node-concat-map.git" |
| 17 |
}, |
| 18 |
"main": "index.js", |
| 19 |
"keywords": [ |
| 20 |
"concat", |
| 21 |
"map", |
| 22 |
"functional", |
| 23 |
"higher-order" |
| 24 |
], |
| 25 |
"directories": { |
| 26 |
"example": "example", |
| 27 |
"test": "test" |
| 28 |
}, |
| 29 |
"scripts": { |
| 30 |
"test": "tap test/*.js" |
| 31 |
}, |
| 32 |
"devDependencies": { |
| 33 |
"tap": "~0.2.5" |
| 34 |
}, |
| 35 |
"engines": { |
| 36 |
"node": ">=0.4.0" |
| 37 |
}, |
| 38 |
"license": "MIT", |
| 39 |
"author": { |
| 40 |
"name": "James Halliday", |
| 41 |
"email": "[email protected]", |
| 42 |
"url": "http://substack.net" |
| 43 |
}, |
| 44 |
"_npmUser": { |
| 45 |
"name": "substack", |
| 46 |
"email": "[email protected]" |
| 47 |
}, |
| 48 |
"_id": "[email protected]", |
| 49 |
"dependencies": {}, |
| 50 |
"optionalDependencies": {}, |
| 51 |
"_engineSupported": true, |
| 52 |
"_npmVersion": "1.1.19", |
| 53 |
"_nodeVersion": "v0.6.11", |
| 54 |
"_defaultsLoaded": true, |
| 55 |
"dist": { |
| 56 |
"shasum": "604be9c2afb6dc9ba8182e3ff294fdd48e238e6d", |
| 57 |
"tarball": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.0.tgz" |
| 58 |
}, |
| 59 |
"maintainers": [ |
| 60 |
{ |
| 61 |
"name": "substack", |
| 62 |
"email": "[email protected]" |
| 63 |
} |
| 64 |
] |
| 65 |
}, |
| 66 |
"0.0.1": { |
| 67 |
"name": "concat-map", |
| 68 |
"description": "concatenative mapdashery", |
| 69 |
"version": "0.0.1", |
| 70 |
"repository": { |
| 71 |
"type": "git", |
| 72 |
"url": "git://github.com/substack/node-concat-map.git" |
| 73 |
}, |
| 74 |
"main": "index.js", |
| 75 |
"keywords": [ |
| 76 |
"concat", |
| 77 |
"concatMap", |
| 78 |
"map", |
| 79 |
"functional", |
| 80 |
"higher-order" |
| 81 |
], |
| 82 |
"directories": { |
| 83 |
"example": "example", |
| 84 |
"test": "test" |
| 85 |
}, |
| 86 |
"scripts": { |
| 87 |
"test": "tape test/*.js" |
| 88 |
}, |
| 89 |
"devDependencies": { |
| 90 |
"tape": "~2.4.0" |
| 91 |
}, |
| 92 |
"license": "MIT", |
| 93 |
"author": { |
| 94 |
"name": "James Halliday", |
| 95 |
"email": "[email protected]", |
| 96 |
"url": "http://substack.net" |
| 97 |
}, |
| 98 |
"testling": { |
| 99 |
"files": "test/*.js", |
| 100 |
"browsers": { |
| 101 |
"ie": [ |
| 102 |
6, |
| 103 |
7, |
| 104 |
8, |
| 105 |
9 |
| 106 |
], |
| 107 |
"ff": [ |
| 108 |
3.5, |
| 109 |
10, |
| 110 |
15 |
| 111 |
], |
| 112 |
"chrome": [ |
| 113 |
10, |
| 114 |
22 |
| 115 |
], |
| 116 |
"safari": [ |
| 117 |
5.1 |
| 118 |
], |
| 119 |
"opera": [ |
| 120 |
12 |
| 121 |
] |
| 122 |
} |
| 123 |
}, |
| 124 |
"bugs": { |
| 125 |
"url": "https://github.com/substack/node-concat-map/issues" |
| 126 |
}, |
| 127 |
"homepage": "https://github.com/substack/node-concat-map", |
| 128 |
"_id": "[email protected]", |
| 129 |
"dist": { |
| 130 |
"shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b", |
| 131 |
"tarball": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" |
| 132 |
}, |
| 133 |
"_from": ".", |
| 134 |
"_npmVersion": "1.3.21", |
| 135 |
"_npmUser": { |
| 136 |
"name": "substack", |
| 137 |
"email": "[email protected]" |
| 138 |
}, |
| 139 |
"maintainers": [ |
| 140 |
{ |
| 141 |
"name": "substack", |
| 142 |
"email": "[email protected]" |
| 143 |
} |
| 144 |
] |
| 145 |
} |
| 146 |
}, |
| 147 |
"readme": "concat-map\n==========\n\nConcatenative mapdashery.\n\n[](http://ci.testling.com/substack/node-concat-map)\n\n[](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", |
| 148 |
"maintainers": [ |
| 149 |
{ |
| 150 |
"name": "substack", |
| 151 |
"email": "[email protected]" |
| 152 |
} |
| 153 |
], |
| 154 |
"time": { |
| 155 |
"modified": "2014-01-30T03:06:35.982Z", |
| 156 |
"created": "2012-06-08T04:31:26.867Z", |
| 157 |
"0.0.0": "2012-06-08T04:31:28.515Z", |
| 158 |
"0.0.1": "2014-01-30T03:06:35.982Z" |
| 159 |
}, |
| 160 |
"author": { |
| 161 |
"name": "James Halliday", |
| 162 |
"email": "[email protected]", |
| 163 |
"url": "http://substack.net" |
| 164 |
}, |
| 165 |
"repository": { |
| 166 |
"type": "git", |
| 167 |
"url": "git://github.com/substack/node-concat-map.git" |
| 168 |
}, |
| 169 |
"readmeFilename": "README.markdown", |
| 170 |
"users": { |
| 171 |
"markthethomas": true, |
| 172 |
"klap-webdevelopment": true, |
| 173 |
"wenbing": true |
| 174 |
}, |
| 175 |
"_attachments": {} |
| 176 |
} |