%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/.npm/registry.npmjs.org/universalify/
Upload File :
Create Path :
Current File : /home/opti/.npm/registry.npmjs.org/universalify/.cache.json

{"_id":"universalify","_rev":"8-1fc6da081aa100693f68dc50770fa4ce","name":"universalify","description":"Make a callback- or promise-based function support both promises and callbacks.","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"universalify","version":"0.0.1","description":"Make a callback- or promise-based function support both promises and callbacks.","keywords":["callback","native","promise"],"homepage":"https://github.com/RyanZim/universalify#readme","bugs":{"url":"https://github.com/RyanZim/universalify/issues"},"license":"MIT","author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/RyanZim/universalify.git"},"scripts":{"test":"standard && nyc tape test/*.js | colortape"},"devDependencies":{"colortape":"^0.1.2","nyc":"^10.2.0","standard":"^10.0.1","tape":"^4.6.3"},"gitHead":"131e6f2b86511f880e04e5995e7a8db468e5bc24","_id":"universalify@0.0.1","_shasum":"937b1b69cecc2f27e27395428eb7952bc7939617","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"937b1b69cecc2f27e27395428eb7952bc7939617","tarball":"https://registry.npmjs.org/universalify/-/universalify-0.0.1.tgz"},"maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/universalify-0.0.1.tgz_1491672518379_0.970205559860915"},"directories":{}},"0.1.0":{"name":"universalify","version":"0.1.0","description":"Make a callback- or promise-based function support both promises and callbacks.","keywords":["callback","native","promise"],"homepage":"https://github.com/RyanZim/universalify#readme","bugs":{"url":"https://github.com/RyanZim/universalify/issues"},"license":"MIT","author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/RyanZim/universalify.git"},"scripts":{"test":"standard && nyc tape test/*.js | colortape"},"devDependencies":{"colortape":"^0.1.2","nyc":"^10.2.0","standard":"^10.0.1","tape":"^4.6.3"},"gitHead":"003666ace34712273c8dfb27b7a92b1112573f15","_id":"universalify@0.1.0","_shasum":"9eb1c4651debcc670cc94f1a75762332bb967778","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"9eb1c4651debcc670cc94f1a75762332bb967778","tarball":"https://registry.npmjs.org/universalify/-/universalify-0.1.0.tgz"},"maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/universalify-0.1.0.tgz_1492871560174_0.5206800866872072"},"directories":{}},"0.1.1":{"name":"universalify","version":"0.1.1","description":"Make a callback- or promise-based function support both promises and callbacks.","keywords":["callback","native","promise"],"homepage":"https://github.com/RyanZim/universalify#readme","bugs":{"url":"https://github.com/RyanZim/universalify/issues"},"license":"MIT","author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/RyanZim/universalify.git"},"scripts":{"test":"standard && nyc tape test/*.js | colortape"},"devDependencies":{"colortape":"^0.1.2","nyc":"^10.2.0","standard":"^10.0.1","tape":"^4.6.3"},"gitHead":"6dcade29ad1fc945f3d2a6e63cf92ec041fa83d2","_id":"universalify@0.1.1","_shasum":"fa71badd4437af4c148841e3b3b165f9e9e590b7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"shasum":"fa71badd4437af4c148841e3b3b165f9e9e590b7","tarball":"https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz"},"maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/universalify-0.1.1.tgz_1500561668015_0.5723595882300287"},"directories":{}},"0.1.2":{"name":"universalify","version":"0.1.2","description":"Make a callback- or promise-based function support both promises and callbacks.","keywords":["callback","native","promise"],"homepage":"https://github.com/RyanZim/universalify#readme","bugs":{"url":"https://github.com/RyanZim/universalify/issues"},"license":"MIT","author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/RyanZim/universalify.git"},"scripts":{"test":"standard && nyc tape test/*.js | colortape"},"devDependencies":{"colortape":"^0.1.2","coveralls":"^3.0.1","nyc":"^10.2.0","standard":"^10.0.1","tape":"^4.6.3"},"engines":{"node":">= 4.0.0"},"gitHead":"ab4b5cd7e962c4915da68bdf0e5b8f9aa677f8f6","_id":"universalify@0.1.2","_npmVersion":"5.8.0","_nodeVersion":"8.10.0","_npmUser":{"name":"ryanzim","email":"opensrc@ryanzim.com"},"dist":{"integrity":"sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==","shasum":"b646f69be3942dabcecc9d6639c80dc105efaa66","tarball":"https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz","fileCount":4,"unpackedSize":4705,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbKje3CRA9TVsSAnZWagAAzfAP/2cu0REZCOFPwB1oH6Cx\n6X0kZDIlx4BiR2hrB/vqUi5qk3Qdqz8oPdpFpfeOgZAQeYXtxgysvjoc64eM\n07sOBQD48/Vu2dkmNKyA8WHTqQoKgIGOE2adcx6OSuxmbmoXBSw1a4BZLapd\nRTIrJ6k1YzmpYfTI4TeIPeax72gcRkESN2C/als++gAja9FzeQtR3khi+tX4\n81iqOb3HZn3Z5+Md15e4jx+ipsIOrta603D1BceBBpcM2fwTvptQiPcvurjX\nKFZfb0s8LwFOTKNFbhi1x5162wEpEBXud2ojJaf3JaUQj/6p5yEzh4rgTpSS\n0ls1QPOv172+xubTCx3Met0ZPn48DWMBN6zXEBWKvnrGVdu3QcYQqzBPlHQ3\nXl2OsAJqIJu0V0kTQJNV26gOf/ng5aobum6kq1+1ZrOFFX6AxtiFzna5Nvti\nPGIvazjovq2+MSk+felrDoP4DKfFSyU4A+6BRSfZotKnw9iJcXX7X8pwseOG\njE32ATbOu1wG2dOZNSHB9aju1uxQ/jcMRVzF6c1TtvJC1oSQuPNVGX7g+s3b\ng7AlmQhPf234Q+ogyJoAZRp8p68v6WNv/ubV3bZm8odzjGkIe5S7Tb6jV0OR\nMKH8bbN6dKIdKTHET7xcrmIQKA+khuJaxWCgms3CpVqJqEkU/0KZQVZlfalL\nC+UO\r\n=qMZi\r\n-----END PGP SIGNATURE-----\r\n"},"maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/universalify_0.1.2_1529493431283_0.2533941036533853"}}},"readme":"# universalify\n\n[![Travis branch](https://img.shields.io/travis/RyanZim/universalify/master.svg)](https://travis-ci.org/RyanZim/universalify)\n![Coveralls github branch](https://img.shields.io/coveralls/github/RyanZim/universalify/master.svg)\n![npm](https://img.shields.io/npm/dm/universalify.svg)\n![npm](https://img.shields.io/npm/l/universalify.svg)\n\nMake a callback- or promise-based function support both promises and callbacks.\n\nUses the native promise implementation.\n\n## Installation\n\n```bash\nnpm install universalify\n```\n\n## API\n\n### `universalify.fromCallback(fn)`\n\nTakes a callback-based function to universalify, and returns the universalified  function.\n\nFunction must take a callback as the last parameter that will be called with the signature `(error, result)`. `universalify` does not support calling the callback with more than three arguments, and does not ensure that the callback is only called once.\n\n```js\nfunction callbackFn (n, cb) {\n  setTimeout(() => cb(null, n), 15)\n}\n\nconst fn = universalify.fromCallback(callbackFn)\n\n// Works with Promises:\nfn('Hello World!')\n.then(result => console.log(result)) // -> Hello World!\n.catch(error => console.error(error))\n\n// Works with Callbacks:\nfn('Hi!', (error, result) => {\n  if (error) return console.error(error)\n  console.log(result)\n  // -> Hi!\n})\n```\n\n### `universalify.fromPromise(fn)`\n\nTakes a promise-based function to universalify, and returns the universalified  function.\n\nFunction must return a valid JS promise. `universalify` does not ensure that a valid promise is returned.\n\n```js\nfunction promiseFn (n) {\n  return new Promise(resolve => {\n    setTimeout(() => resolve(n), 15)\n  })\n}\n\nconst fn = universalify.fromPromise(promiseFn)\n\n// Works with Promises:\nfn('Hello World!')\n.then(result => console.log(result)) // -> Hello World!\n.catch(error => console.error(error))\n\n// Works with Callbacks:\nfn('Hi!', (error, result) => {\n  if (error) return console.error(error)\n  console.log(result)\n  // -> Hi!\n})\n```\n\n## License\n\nMIT\n","maintainers":[{"name":"ryanzim","email":"opensrc@ryanzim.com"}],"time":{"modified":"2018-06-20T11:17:15.494Z","created":"2017-04-08T17:28:40.301Z","0.0.1":"2017-04-08T17:28:40.301Z","0.1.0":"2017-04-22T14:32:41.242Z","0.1.1":"2017-07-20T14:41:09.194Z","0.1.2":"2018-06-20T11:17:11.369Z"},"homepage":"https://github.com/RyanZim/universalify#readme","keywords":["callback","native","promise"],"repository":{"type":"git","url":"git+https://github.com/RyanZim/universalify.git"},"author":{"name":"Ryan Zimmerman","email":"opensrc@ryanzim.com"},"bugs":{"url":"https://github.com/RyanZim/universalify/issues"},"license":"MIT","readmeFilename":"README.md","users":{"heartnett":true,"larrychen":true,"arniu":true,"xiatian":true},"_attachments":{},"_etag":"W/\"6f768f540d4f3c4679203ab0f4052fa1\"","_lastModified":"Wed, 20 Jun 2018 11:17:16 GMT","_cached":true}

Zerion Mini Shell 1.0