| 1 |
{ |
| 2 |
"_id": "generate-function", |
| 3 |
"_rev": "19-1f101f1e57d5a12789c70f07ece0cd11", |
| 4 |
"name": "generate-function", |
| 5 |
"description": "Module that helps you write generated functions in Node", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "2.3.1" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.0": { |
| 11 |
"name": "generate-function", |
| 12 |
"version": "0.0.0", |
| 13 |
"description": "Module that helps you write generated functions in Node", |
| 14 |
"main": "index.js", |
| 15 |
"scripts": { |
| 16 |
"test": "tape test.js" |
| 17 |
}, |
| 18 |
"repository": { |
| 19 |
"type": "git", |
| 20 |
"url": "https://github.com/mafintosh/generate-function" |
| 21 |
}, |
| 22 |
"keywords": [ |
| 23 |
"generate", |
| 24 |
"code", |
| 25 |
"generation", |
| 26 |
"function", |
| 27 |
"performance" |
| 28 |
], |
| 29 |
"author": { |
| 30 |
"name": "Mathias Buus" |
| 31 |
}, |
| 32 |
"license": "MIT", |
| 33 |
"bugs": { |
| 34 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 35 |
}, |
| 36 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 37 |
"devDependencies": { |
| 38 |
"tape": "^2.13.4" |
| 39 |
}, |
| 40 |
"gitHead": "f4dc06374d18af82d530b3aecc7ba3cf4803188d", |
| 41 |
"_id": "[email protected]", |
| 42 |
"_shasum": "fd561eece1948ea5ee9138d50ac479d18f7f7822", |
| 43 |
"_from": ".", |
| 44 |
"_npmVersion": "1.4.21", |
| 45 |
"_npmUser": { |
| 46 |
"name": "mafintosh", |
| 47 |
"email": "[email protected]" |
| 48 |
}, |
| 49 |
"maintainers": [ |
| 50 |
{ |
| 51 |
"name": "mafintosh", |
| 52 |
"email": "[email protected]" |
| 53 |
} |
| 54 |
], |
| 55 |
"dist": { |
| 56 |
"shasum": "fd561eece1948ea5ee9138d50ac479d18f7f7822", |
| 57 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-0.0.0.tgz" |
| 58 |
}, |
| 59 |
"directories": {} |
| 60 |
}, |
| 61 |
"1.0.0": { |
| 62 |
"name": "generate-function", |
| 63 |
"version": "1.0.0", |
| 64 |
"description": "Module that helps you write generated functions in Node", |
| 65 |
"main": "index.js", |
| 66 |
"scripts": { |
| 67 |
"test": "tape test.js" |
| 68 |
}, |
| 69 |
"repository": { |
| 70 |
"type": "git", |
| 71 |
"url": "https://github.com/mafintosh/generate-function" |
| 72 |
}, |
| 73 |
"keywords": [ |
| 74 |
"generate", |
| 75 |
"code", |
| 76 |
"generation", |
| 77 |
"function", |
| 78 |
"performance" |
| 79 |
], |
| 80 |
"author": { |
| 81 |
"name": "Mathias Buus" |
| 82 |
}, |
| 83 |
"license": "MIT", |
| 84 |
"bugs": { |
| 85 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 86 |
}, |
| 87 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 88 |
"devDependencies": { |
| 89 |
"tape": "^2.13.4" |
| 90 |
}, |
| 91 |
"gitHead": "5a757a46bb7121e203a25ea301ca3ef6a2091411", |
| 92 |
"_id": "[email protected]", |
| 93 |
"_shasum": "1e6af3d0ad50f35050b1a9a1c056dad4a2c7f5c5", |
| 94 |
"_from": ".", |
| 95 |
"_npmVersion": "1.4.21", |
| 96 |
"_npmUser": { |
| 97 |
"name": "mafintosh", |
| 98 |
"email": "[email protected]" |
| 99 |
}, |
| 100 |
"maintainers": [ |
| 101 |
{ |
| 102 |
"name": "mafintosh", |
| 103 |
"email": "[email protected]" |
| 104 |
} |
| 105 |
], |
| 106 |
"dist": { |
| 107 |
"shasum": "1e6af3d0ad50f35050b1a9a1c056dad4a2c7f5c5", |
| 108 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-1.0.0.tgz" |
| 109 |
}, |
| 110 |
"directories": {} |
| 111 |
}, |
| 112 |
"1.0.1": { |
| 113 |
"name": "generate-function", |
| 114 |
"version": "1.0.1", |
| 115 |
"description": "Module that helps you write generated functions in Node", |
| 116 |
"main": "index.js", |
| 117 |
"scripts": { |
| 118 |
"test": "tape test.js" |
| 119 |
}, |
| 120 |
"repository": { |
| 121 |
"type": "git", |
| 122 |
"url": "https://github.com/mafintosh/generate-function" |
| 123 |
}, |
| 124 |
"keywords": [ |
| 125 |
"generate", |
| 126 |
"code", |
| 127 |
"generation", |
| 128 |
"function", |
| 129 |
"performance" |
| 130 |
], |
| 131 |
"author": { |
| 132 |
"name": "Mathias Buus" |
| 133 |
}, |
| 134 |
"license": "MIT", |
| 135 |
"bugs": { |
| 136 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 137 |
}, |
| 138 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 139 |
"devDependencies": { |
| 140 |
"tape": "^2.13.4" |
| 141 |
}, |
| 142 |
"gitHead": "17c6c09d5ea81fc783481d736388201644962842", |
| 143 |
"_id": "[email protected]", |
| 144 |
"_shasum": "3c53e1a681619063c3bac744af8cd134d9dc6efa", |
| 145 |
"_from": ".", |
| 146 |
"_npmVersion": "1.4.21", |
| 147 |
"_npmUser": { |
| 148 |
"name": "mafintosh", |
| 149 |
"email": "[email protected]" |
| 150 |
}, |
| 151 |
"maintainers": [ |
| 152 |
{ |
| 153 |
"name": "mafintosh", |
| 154 |
"email": "[email protected]" |
| 155 |
} |
| 156 |
], |
| 157 |
"dist": { |
| 158 |
"shasum": "3c53e1a681619063c3bac744af8cd134d9dc6efa", |
| 159 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-1.0.1.tgz" |
| 160 |
}, |
| 161 |
"directories": {} |
| 162 |
}, |
| 163 |
"1.0.2": { |
| 164 |
"name": "generate-function", |
| 165 |
"version": "1.0.2", |
| 166 |
"description": "Module that helps you write generated functions in Node", |
| 167 |
"main": "index.js", |
| 168 |
"scripts": { |
| 169 |
"test": "tape test.js" |
| 170 |
}, |
| 171 |
"repository": { |
| 172 |
"type": "git", |
| 173 |
"url": "https://github.com/mafintosh/generate-function" |
| 174 |
}, |
| 175 |
"keywords": [ |
| 176 |
"generate", |
| 177 |
"code", |
| 178 |
"generation", |
| 179 |
"function", |
| 180 |
"performance" |
| 181 |
], |
| 182 |
"author": { |
| 183 |
"name": "Mathias Buus" |
| 184 |
}, |
| 185 |
"license": "MIT", |
| 186 |
"bugs": { |
| 187 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 188 |
}, |
| 189 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 190 |
"devDependencies": { |
| 191 |
"tape": "^2.13.4" |
| 192 |
}, |
| 193 |
"gitHead": "f74a9edbbaced7cbb481bbadd18b36b1ae233754", |
| 194 |
"_id": "[email protected]", |
| 195 |
"_shasum": "b6d5748ff5f35567d82908e84e4a921fad23c6d6", |
| 196 |
"_from": ".", |
| 197 |
"_npmVersion": "1.4.21", |
| 198 |
"_npmUser": { |
| 199 |
"name": "mafintosh", |
| 200 |
"email": "[email protected]" |
| 201 |
}, |
| 202 |
"maintainers": [ |
| 203 |
{ |
| 204 |
"name": "mafintosh", |
| 205 |
"email": "[email protected]" |
| 206 |
} |
| 207 |
], |
| 208 |
"dist": { |
| 209 |
"shasum": "b6d5748ff5f35567d82908e84e4a921fad23c6d6", |
| 210 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-1.0.2.tgz" |
| 211 |
}, |
| 212 |
"directories": {} |
| 213 |
}, |
| 214 |
"1.0.3": { |
| 215 |
"name": "generate-function", |
| 216 |
"version": "1.0.3", |
| 217 |
"description": "Module that helps you write generated functions in Node", |
| 218 |
"main": "index.js", |
| 219 |
"scripts": { |
| 220 |
"test": "tape test.js" |
| 221 |
}, |
| 222 |
"repository": { |
| 223 |
"type": "git", |
| 224 |
"url": "https://github.com/mafintosh/generate-function" |
| 225 |
}, |
| 226 |
"keywords": [ |
| 227 |
"generate", |
| 228 |
"code", |
| 229 |
"generation", |
| 230 |
"function", |
| 231 |
"performance" |
| 232 |
], |
| 233 |
"author": { |
| 234 |
"name": "Mathias Buus" |
| 235 |
}, |
| 236 |
"license": "MIT", |
| 237 |
"bugs": { |
| 238 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 239 |
}, |
| 240 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 241 |
"devDependencies": { |
| 242 |
"tape": "^2.13.4" |
| 243 |
}, |
| 244 |
"gitHead": "ed65d50801cf4a6ccd9f2272caa262d84fd300ee", |
| 245 |
"_id": "[email protected]", |
| 246 |
"_shasum": "2083919b224afe5cb884b91693744efd2bf9bb03", |
| 247 |
"_from": ".", |
| 248 |
"_npmVersion": "1.4.21", |
| 249 |
"_npmUser": { |
| 250 |
"name": "mafintosh", |
| 251 |
"email": "[email protected]" |
| 252 |
}, |
| 253 |
"maintainers": [ |
| 254 |
{ |
| 255 |
"name": "mafintosh", |
| 256 |
"email": "[email protected]" |
| 257 |
} |
| 258 |
], |
| 259 |
"dist": { |
| 260 |
"shasum": "2083919b224afe5cb884b91693744efd2bf9bb03", |
| 261 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-1.0.3.tgz" |
| 262 |
}, |
| 263 |
"directories": {} |
| 264 |
}, |
| 265 |
"1.1.0": { |
| 266 |
"name": "generate-function", |
| 267 |
"version": "1.1.0", |
| 268 |
"description": "Module that helps you write generated functions in Node", |
| 269 |
"main": "index.js", |
| 270 |
"scripts": { |
| 271 |
"test": "tape test.js" |
| 272 |
}, |
| 273 |
"repository": { |
| 274 |
"type": "git", |
| 275 |
"url": "https://github.com/mafintosh/generate-function" |
| 276 |
}, |
| 277 |
"keywords": [ |
| 278 |
"generate", |
| 279 |
"code", |
| 280 |
"generation", |
| 281 |
"function", |
| 282 |
"performance" |
| 283 |
], |
| 284 |
"author": { |
| 285 |
"name": "Mathias Buus" |
| 286 |
}, |
| 287 |
"license": "MIT", |
| 288 |
"bugs": { |
| 289 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 290 |
}, |
| 291 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 292 |
"devDependencies": { |
| 293 |
"tape": "^2.13.4" |
| 294 |
}, |
| 295 |
"gitHead": "99be057fb14f2e7f87afa116e5ca4d40a379c080", |
| 296 |
"_id": "[email protected]", |
| 297 |
"_shasum": "54c21b080192b16d9877779c5bb81666e772365f", |
| 298 |
"_from": ".", |
| 299 |
"_npmVersion": "1.4.21", |
| 300 |
"_npmUser": { |
| 301 |
"name": "mafintosh", |
| 302 |
"email": "[email protected]" |
| 303 |
}, |
| 304 |
"maintainers": [ |
| 305 |
{ |
| 306 |
"name": "mafintosh", |
| 307 |
"email": "[email protected]" |
| 308 |
} |
| 309 |
], |
| 310 |
"dist": { |
| 311 |
"shasum": "54c21b080192b16d9877779c5bb81666e772365f", |
| 312 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-1.1.0.tgz" |
| 313 |
}, |
| 314 |
"directories": {} |
| 315 |
}, |
| 316 |
"2.0.0": { |
| 317 |
"name": "generate-function", |
| 318 |
"version": "2.0.0", |
| 319 |
"description": "Module that helps you write generated functions in Node", |
| 320 |
"main": "index.js", |
| 321 |
"scripts": { |
| 322 |
"test": "tape test.js" |
| 323 |
}, |
| 324 |
"repository": { |
| 325 |
"type": "git", |
| 326 |
"url": "https://github.com/mafintosh/generate-function" |
| 327 |
}, |
| 328 |
"keywords": [ |
| 329 |
"generate", |
| 330 |
"code", |
| 331 |
"generation", |
| 332 |
"function", |
| 333 |
"performance" |
| 334 |
], |
| 335 |
"author": { |
| 336 |
"name": "Mathias Buus" |
| 337 |
}, |
| 338 |
"license": "MIT", |
| 339 |
"bugs": { |
| 340 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 341 |
}, |
| 342 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 343 |
"devDependencies": { |
| 344 |
"tape": "^2.13.4" |
| 345 |
}, |
| 346 |
"gitHead": "3d5fc8de5859be95f58e3af9bfb5f663edd95149", |
| 347 |
"_id": "[email protected]", |
| 348 |
"_shasum": "6858fe7c0969b7d4e9093337647ac79f60dfbe74", |
| 349 |
"_from": ".", |
| 350 |
"_npmVersion": "1.4.23", |
| 351 |
"_npmUser": { |
| 352 |
"name": "mafintosh", |
| 353 |
"email": "[email protected]" |
| 354 |
}, |
| 355 |
"maintainers": [ |
| 356 |
{ |
| 357 |
"name": "mafintosh", |
| 358 |
"email": "[email protected]" |
| 359 |
} |
| 360 |
], |
| 361 |
"dist": { |
| 362 |
"shasum": "6858fe7c0969b7d4e9093337647ac79f60dfbe74", |
| 363 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz" |
| 364 |
}, |
| 365 |
"directories": {} |
| 366 |
}, |
| 367 |
"2.2.0": { |
| 368 |
"name": "generate-function", |
| 369 |
"version": "2.2.0", |
| 370 |
"description": "Module that helps you write generated functions in Node", |
| 371 |
"main": "index.js", |
| 372 |
"scripts": { |
| 373 |
"test": "tape test.js" |
| 374 |
}, |
| 375 |
"repository": { |
| 376 |
"type": "git", |
| 377 |
"url": "git+https://github.com/mafintosh/generate-function.git" |
| 378 |
}, |
| 379 |
"keywords": [ |
| 380 |
"generate", |
| 381 |
"code", |
| 382 |
"generation", |
| 383 |
"function", |
| 384 |
"performance" |
| 385 |
], |
| 386 |
"author": { |
| 387 |
"name": "Mathias Buus" |
| 388 |
}, |
| 389 |
"license": "MIT", |
| 390 |
"bugs": { |
| 391 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 392 |
}, |
| 393 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 394 |
"devDependencies": { |
| 395 |
"tape": "^2.13.4" |
| 396 |
}, |
| 397 |
"gitHead": "1bf54dde865a62f782658f4721e58165778f08d7", |
| 398 |
"_id": "[email protected]", |
| 399 |
"_npmVersion": "6.2.0", |
| 400 |
"_nodeVersion": "10.9.0", |
| 401 |
"_npmUser": { |
| 402 |
"name": "mafintosh", |
| 403 |
"email": "[email protected]" |
| 404 |
}, |
| 405 |
"dist": { |
| 406 |
"integrity": "sha512-EYWRyUEUdNSsmfMZ2udk1AaxEmJQBaCNgfh+FJo0lcUvP42nyR/Xe30kCyxZs7e6t47bpZw0HftWF+KFjD/Lzg==", |
| 407 |
"shasum": "1aeac896147293d27bce65eb295ce5f3f094a292", |
| 408 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-2.2.0.tgz", |
| 409 |
"fileCount": 7, |
| 410 |
"unpackedSize": 7143, |
| 411 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbg1+8CRA9TVsSAnZWagAADloP/1lGfZwTlMJHY2n0F1xu\n6ZJ7WKX9Fh/q1uGtvYgv+eC1E6IEErFp5yo5YC5rwX6YWK3OmZkPb/VGKrpZ\nzmJo4qIxBkGW0ffIl7BpP7zCGf+/sLaBiD5gOsnT7e+ZPX623QqhY0R+qbKc\n+pDg1attXyjZBGjFzzC9pakrEt+T3F266L1ir3eYiLXSf0kpFDu2JNCU11fD\nHLo61MmPqGE8Kz+BucZMs77jA0u1ObDl3O1yjlfqhzHJPQxqXURiiSO8sMe2\n8cq2GEe03idtrqP2fXJ/huiw9XByNRg/S6DMU85FVQw4yZ8rw/jTjr3joz4m\nzKO05OheFV8Ssb70cwpjDhDgFJ514CwEzxxgibMlHUwUSvwfdincXqqt5vO/\nXWhFFswKf+q61oaiDuX7cJ3wRu6pcXF4aqTqtH5HD9WiKKngk3gUegFxvjvA\nW7sGtTFbb2zyhhIEXa58r8pboyPMA8QrI6yScUjHeUnL5z6Ildq8duxlhKsT\negp5BAjIUScUsWWA9PGliOc8zra2LynDEWxwvUzIiXFjM1cgZK9IbBfnG/zf\n4SBskLo+cYbRetoOBSKuvsDHY2P4mCKbZ9tVm1IV/5eD2YqP2SrB7e026+HB\nrAGkONxNKoobIwn7RFcLt/Pp9i9ZtitCjGuZyNmgUr4a7GLGWGSaGjj/KhGW\nSExJ\r\n=9+XB\r\n-----END PGP SIGNATURE-----\r\n" |
| 412 |
}, |
| 413 |
"maintainers": [ |
| 414 |
{ |
| 415 |
"name": "mafintosh", |
| 416 |
"email": "[email protected]" |
| 417 |
} |
| 418 |
], |
| 419 |
"directories": {}, |
| 420 |
"_npmOperationalInternal": { |
| 421 |
"host": "s3://npm-registry-packages", |
| 422 |
"tmp": "tmp/generate-function_2.2.0_1535336379774_0.7369054827033938" |
| 423 |
}, |
| 424 |
"_hasShrinkwrap": false |
| 425 |
}, |
| 426 |
"2.2.1": { |
| 427 |
"name": "generate-function", |
| 428 |
"version": "2.2.1", |
| 429 |
"description": "Module that helps you write generated functions in Node", |
| 430 |
"main": "index.js", |
| 431 |
"scripts": { |
| 432 |
"test": "tape test.js" |
| 433 |
}, |
| 434 |
"repository": { |
| 435 |
"type": "git", |
| 436 |
"url": "git+https://github.com/mafintosh/generate-function.git" |
| 437 |
}, |
| 438 |
"keywords": [ |
| 439 |
"generate", |
| 440 |
"code", |
| 441 |
"generation", |
| 442 |
"function", |
| 443 |
"performance" |
| 444 |
], |
| 445 |
"author": { |
| 446 |
"name": "Mathias Buus" |
| 447 |
}, |
| 448 |
"license": "MIT", |
| 449 |
"bugs": { |
| 450 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 451 |
}, |
| 452 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 453 |
"devDependencies": { |
| 454 |
"tape": "^4.9.1" |
| 455 |
}, |
| 456 |
"dependencies": { |
| 457 |
"is-property": "^1.0.2" |
| 458 |
}, |
| 459 |
"gitHead": "bce8178e466f1609b388d3601d73fe6c201738bf", |
| 460 |
"_id": "[email protected]", |
| 461 |
"_npmVersion": "6.2.0", |
| 462 |
"_nodeVersion": "10.9.0", |
| 463 |
"_npmUser": { |
| 464 |
"name": "mafintosh", |
| 465 |
"email": "[email protected]" |
| 466 |
}, |
| 467 |
"dist": { |
| 468 |
"integrity": "sha512-Qiaeib/wcNIj0igwKAAiWyvPpCcZAAchlrVLg7Q7GSj9ctvZeUXEb+IHu8THPYEz9+LlU01MRMUINA6Do0DEjg==", |
| 469 |
"shasum": "6e25c0a48fb47cd0b5d4e8815ca286171acc8e27", |
| 470 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-2.2.1.tgz", |
| 471 |
"fileCount": 7, |
| 472 |
"unpackedSize": 7256, |
| 473 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiUx/CRA9TVsSAnZWagAAjjYQAIahbogMmOhHStVTlcNo\nWQYHJ2d5lSjc2rOymEk+HEJg2RRUAOHmPdnSDPxFqUMz1ZzTWxE/e61dOjdR\n2C72ofjX8VJrrc59kAS7C8+QvoWvPVAHuZUcJAoZUdN3SRRNyp1dU5bY4s2a\n1pCOXZb33lDAHGZI8HyLg13Po7W9i4EhhNWLMSfiYaeRLx5+BVPCDQmWgOen\nMmz4bhKjU8lh4PqGsoqVSM7dUa093eMeF3DA1BWEL6635U4IQVTjdU5XAEWI\nc/IKm+j21y2bzBaD1lmYPRz+hEcUEgWeh3fOsXOIGwFgf7/sJU47hElrv8cC\nVFCpEOdDXphTSuFjtazkpo4GO7NUxW3EagXM7XO+YMdW238whnBRc+lF80CV\nmEWGjv+E26YVv2Q3zJYiI43bAzjh/OiB0NZMzAq05QISYuA6W0qB/JBYgqeJ\nUP76hlsAU8/kcsMfrmsDMg7LUcs74kO1HpSUC5EcJPDCKg8wTWoRLO3CliZR\nSexqyl5v7ZWpkzE+rizmhYENcIpPdUd95mqOACT4H/Zt3MfCsRHBlTOCCAbp\njrWe8oiytjPXA3aSoZsgpchXR/g4BudATTfNErC6x3UeM3u9farUKtYY/wc1\nBuRW26dP5723l2lEjCy5bQjKoSEwIzHwnaelxIQq0dtEngm9okEOyUGJB+V1\nbuY3\r\n=srOi\r\n-----END PGP SIGNATURE-----\r\n" |
| 474 |
}, |
| 475 |
"maintainers": [ |
| 476 |
{ |
| 477 |
"name": "mafintosh", |
| 478 |
"email": "[email protected]" |
| 479 |
} |
| 480 |
], |
| 481 |
"directories": {}, |
| 482 |
"_npmOperationalInternal": { |
| 483 |
"host": "s3://npm-registry-packages", |
| 484 |
"tmp": "tmp/generate-function_2.2.1_1535724670315_0.06041108490401381" |
| 485 |
}, |
| 486 |
"_hasShrinkwrap": false |
| 487 |
}, |
| 488 |
"2.3.0": { |
| 489 |
"name": "generate-function", |
| 490 |
"version": "2.3.0", |
| 491 |
"description": "Module that helps you write generated functions in Node", |
| 492 |
"main": "index.js", |
| 493 |
"scripts": { |
| 494 |
"test": "tape test.js" |
| 495 |
}, |
| 496 |
"repository": { |
| 497 |
"type": "git", |
| 498 |
"url": "git+https://github.com/mafintosh/generate-function.git" |
| 499 |
}, |
| 500 |
"keywords": [ |
| 501 |
"generate", |
| 502 |
"code", |
| 503 |
"generation", |
| 504 |
"function", |
| 505 |
"performance" |
| 506 |
], |
| 507 |
"author": { |
| 508 |
"name": "Mathias Buus" |
| 509 |
}, |
| 510 |
"license": "MIT", |
| 511 |
"bugs": { |
| 512 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 513 |
}, |
| 514 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 515 |
"devDependencies": { |
| 516 |
"tape": "^4.9.1" |
| 517 |
}, |
| 518 |
"dependencies": { |
| 519 |
"is-property": "^1.0.2" |
| 520 |
}, |
| 521 |
"gitHead": "1107e1e0c4e2490a6fc0c6e0a94c30ffafca31a1", |
| 522 |
"_id": "[email protected]", |
| 523 |
"_npmVersion": "6.2.0", |
| 524 |
"_nodeVersion": "10.9.0", |
| 525 |
"_npmUser": { |
| 526 |
"name": "mafintosh", |
| 527 |
"email": "[email protected]" |
| 528 |
}, |
| 529 |
"dist": { |
| 530 |
"integrity": "sha512-l9f57Gv0++DaxzEjIDTnBkvI+9j41AAm+ORz609Z4mf5jEQ30R7tOlzR8beIcaKhM8pos9zBMSnpoPIgOSkm7g==", |
| 531 |
"shasum": "b3aac2a706a902ddc8954f7ee4c450facb21efa0", |
| 532 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.0.tgz", |
| 533 |
"fileCount": 7, |
| 534 |
"unpackedSize": 7540, |
| 535 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiU+8CRA9TVsSAnZWagAAmnwP/jtUyP/wf+Wd7f7hGkgy\n2qVqh7AuX5PQ7aFLO96qvXGVYNfg4C5ixcmd9lnke5DAlv5L2ijx42KiOlkH\nfUGUG+WShDQYc37qmybiRAr+Qgso8qNONbEA+YyXPLcItpxMffVWK+gsVqGr\nI0R70alX8wiTwutl5ztCtXVeZAjSs/CQFEqg8txpui+tRaoX/znuwI0Q20rY\ndHQ/4ctLiiHRxdf3vm/Vtl1XTA599jrb3zpNuYg3Zr4tn002JkfgejSa023C\nh7Q8afl+wq0bzPqQFcyriPANfNsfIOhrboPUap4MBP9RgQjAE6KS/oRz2isW\nHmFIOiAnbzdIO993h+2CLZfW7kfgfxeQpEMymNVNlH8iTgZyBXsBS6ksKsJw\nyQEY+9CDtv8WpTv1roXjagTCTQ/roGjAVrc2PPu/hU3SwsRuxKcrOReLIoo8\n+IBCJOaOjZ4XGjjUC0Tj6TYrK+kjGXifIuSZ3EgyHx5ypf6CS2sHKh4qeB0j\nrR+46+TIrNOiKPPMBocbZXypbj4m3f1ONbvSsPy36ZGX8oIYAS9iakKcK0WL\nnMLCxWOYum0Rwv2wRzJosW0TlV0L3NOLNszQFRlH3lr6nDuzPo65LbmKDNRR\n0gkP2c1lWE3S5BH0Pkq1o4p6mc/v4QsiwdVAtiAHVKCFYVacIWkgSm5Zjo2M\no3qn\r\n=cSHx\r\n-----END PGP SIGNATURE-----\r\n" |
| 536 |
}, |
| 537 |
"maintainers": [ |
| 538 |
{ |
| 539 |
"name": "mafintosh", |
| 540 |
"email": "[email protected]" |
| 541 |
} |
| 542 |
], |
| 543 |
"directories": {}, |
| 544 |
"_npmOperationalInternal": { |
| 545 |
"host": "s3://npm-registry-packages", |
| 546 |
"tmp": "tmp/generate-function_2.3.0_1535725499510_0.761206463485137" |
| 547 |
}, |
| 548 |
"_hasShrinkwrap": false |
| 549 |
}, |
| 550 |
"2.3.1": { |
| 551 |
"name": "generate-function", |
| 552 |
"version": "2.3.1", |
| 553 |
"description": "Module that helps you write generated functions in Node", |
| 554 |
"main": "index.js", |
| 555 |
"scripts": { |
| 556 |
"test": "tape test.js" |
| 557 |
}, |
| 558 |
"repository": { |
| 559 |
"type": "git", |
| 560 |
"url": "git+https://github.com/mafintosh/generate-function.git" |
| 561 |
}, |
| 562 |
"keywords": [ |
| 563 |
"generate", |
| 564 |
"code", |
| 565 |
"generation", |
| 566 |
"function", |
| 567 |
"performance" |
| 568 |
], |
| 569 |
"author": { |
| 570 |
"name": "Mathias Buus" |
| 571 |
}, |
| 572 |
"license": "MIT", |
| 573 |
"bugs": { |
| 574 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 575 |
}, |
| 576 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 577 |
"devDependencies": { |
| 578 |
"tape": "^4.9.1" |
| 579 |
}, |
| 580 |
"dependencies": { |
| 581 |
"is-property": "^1.0.2" |
| 582 |
}, |
| 583 |
"gitHead": "240c6ef0f243fa8e37d2656f880c7145c9f6d12d", |
| 584 |
"_id": "[email protected]", |
| 585 |
"_npmVersion": "6.2.0", |
| 586 |
"_nodeVersion": "10.9.0", |
| 587 |
"_npmUser": { |
| 588 |
"name": "mafintosh", |
| 589 |
"email": "[email protected]" |
| 590 |
}, |
| 591 |
"dist": { |
| 592 |
"integrity": "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==", |
| 593 |
"shasum": "f069617690c10c868e73b8465746764f97c3479f", |
| 594 |
"tarball": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", |
| 595 |
"fileCount": 7, |
| 596 |
"unpackedSize": 9036, |
| 597 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbiVS9CRA9TVsSAnZWagAAz9MP/0dABEez3UvcrA4MM2M1\nL1GpVcOokTcnKzNPOH/fgNHR635xGF5F54HOgWSbzEKVvOu8wtwTeCG9ZOrG\n7xL7O315dN8N1OjfzoevA2Y5tqVjGmrEaz4yX+x/zgXHQkH19SGHbmSQ64wi\nlpBF7W9OpdGOGreE1mGyeXFpNIwdL+Zfq01H5nCAk4eFIU4r9K8s27Pw/CmK\nueeKfl+0XbpUQ1dEk77ixwVw0JH0/oupKlejg3jshpDpHCfsnDbBD8D0YjLW\nwxSUVPeFvIyZJlNyMVuD3B9fpL1xV/EhGuJ8EbbHWFdxg5cWQj+WurJpVduc\n5CCFYhimHhY0sbnc8XPfEfccC1Kba3VqpbfLDnZ3kDVDs/tMrYJTA4XpKNZq\nHFIsXWsDp1TU65DtdSmFWclrj2zB/j/yi7KerZ3crG4qyUKDqpzjNjYwUzqw\nSNjoliE9c+dABUUVtAZ7wiq48uYPXGoAJdC6Uic7N5V3jHhTVPf0YQJ4ALaW\nUtig2v1t4xKtYOc+hPdLlbIzl3WUuS7Nm/lFIo1/y+1MlheRkD+XD2v5LeFg\ncUeu67CSBtLc876IdyHLLUyY/566R/yJW64Sgxcpnf+LE1KmHyfjbWrkBYgP\ntXO7DFoY8vsWOvoIhPN5IzBqfJjhNbiQ9wpHtlhmvmicAxPfZVtEbQqaUCdS\n+xoQ\r\n=iuGb\r\n-----END PGP SIGNATURE-----\r\n" |
| 598 |
}, |
| 599 |
"maintainers": [ |
| 600 |
{ |
| 601 |
"name": "mafintosh", |
| 602 |
"email": "[email protected]" |
| 603 |
} |
| 604 |
], |
| 605 |
"directories": {}, |
| 606 |
"_npmOperationalInternal": { |
| 607 |
"host": "s3://npm-registry-packages", |
| 608 |
"tmp": "tmp/generate-function_2.3.1_1535726781175_0.7685665533040811" |
| 609 |
}, |
| 610 |
"_hasShrinkwrap": false |
| 611 |
} |
| 612 |
}, |
| 613 |
"readme": "# generate-function\n\nModule that helps you write generated functions in Node\n\n```\nnpm install generate-function\n```\n\n[](http://travis-ci.org/mafintosh/generate-function)\n\n## Disclamer\n\nWriting code that generates code is hard.\nYou should only use this if you really, really, really need this for performance reasons (like schema validators / parsers etc).\n\n## Usage\n\n``` js\nconst genfun = require('generate-function')\nconst { d } = genfun.formats\n\nfunction addNumber (val) {\n const gen = genfun()\n\n gen(`\n function add (n) {')\n return n + ${d(val)}) // supports format strings to insert values\n }\n `)\n\n return gen.toFunction() // will compile the function\n}\n\nconst add2 = addNumber(2)\n\nconsole.log('1 + 2 =', add2(1))\nconsole.log(add2.toString()) // prints the generated function\n```\n\nIf you need to close over variables in your generated function pass them to `toFunction(scope)`\n\n``` js\nfunction multiply (a, b) {\n return a * b\n}\n\nfunction addAndMultiplyNumber (val) {\n const gen = genfun()\n \n gen(`\n function (n) {\n if (typeof n !== 'number') {\n throw new Error('argument should be a number')\n }\n const result = multiply(${d(val)}, n + ${d(val)})\n return result\n }\n `)\n\n // use gen.toString() if you want to see the generated source\n\n return gen.toFunction({multiply})\n}\n\nconst addAndMultiply2 = addAndMultiplyNumber(2)\n\nconsole.log(addAndMultiply2.toString())\nconsole.log('(3 + 2) * 2 =', addAndMultiply2(3))\n```\n\nYou can call `gen(src)` as many times as you want to append more source code to the function.\n\n## Variables\n\nIf you need a unique safe identifier for the scope of the generated function call `str = gen.sym('friendlyName')`.\nThese are safe to use for variable names etc.\n\n## Object properties\n\nIf you need to access an object property use the `str = gen.property('objectName', 'propertyName')`.\n\nThis returns `'objectName.propertyName'` if `propertyName` is safe to use as a variable. Otherwise\nit returns `objectName[propertyNameAsString]`.\n\nIf you only pass `gen.property('propertyName')` it will only return the `propertyName` part safely\n\n## License\n\nMIT\n", |
| 614 |
"maintainers": [ |
| 615 |
{ |
| 616 |
"name": "mafintosh", |
| 617 |
"email": "[email protected]" |
| 618 |
} |
| 619 |
], |
| 620 |
"time": { |
| 621 |
"modified": "2019-01-03T22:50:07.166Z", |
| 622 |
"created": "2014-07-30T17:17:07.759Z", |
| 623 |
"0.0.0": "2014-07-30T17:17:07.759Z", |
| 624 |
"1.0.0": "2014-07-30T17:25:00.747Z", |
| 625 |
"1.0.1": "2014-07-30T18:22:50.528Z", |
| 626 |
"1.0.2": "2014-07-30T21:39:22.512Z", |
| 627 |
"1.0.3": "2014-08-01T09:04:48.912Z", |
| 628 |
"1.1.0": "2014-08-01T09:50:30.055Z", |
| 629 |
"2.0.0": "2014-08-21T16:53:53.661Z", |
| 630 |
"2.2.0": "2018-08-27T02:19:39.872Z", |
| 631 |
"2.2.1": "2018-08-31T14:11:10.513Z", |
| 632 |
"2.3.0": "2018-08-31T14:24:59.646Z", |
| 633 |
"2.3.1": "2018-08-31T14:46:21.330Z" |
| 634 |
}, |
| 635 |
"homepage": "https://github.com/mafintosh/generate-function", |
| 636 |
"keywords": [ |
| 637 |
"generate", |
| 638 |
"code", |
| 639 |
"generation", |
| 640 |
"function", |
| 641 |
"performance" |
| 642 |
], |
| 643 |
"repository": { |
| 644 |
"type": "git", |
| 645 |
"url": "git+https://github.com/mafintosh/generate-function.git" |
| 646 |
}, |
| 647 |
"author": { |
| 648 |
"name": "Mathias Buus" |
| 649 |
}, |
| 650 |
"bugs": { |
| 651 |
"url": "https://github.com/mafintosh/generate-function/issues" |
| 652 |
}, |
| 653 |
"license": "MIT", |
| 654 |
"readmeFilename": "README.md", |
| 655 |
"users": { |
| 656 |
"mojaray2k": true |
| 657 |
} |
| 658 |
} |