{"_id":"relike","_rev":"27-b7c613394a15ab8ba2125000aca8b490","name":"relike","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","dist-tags":{"latest":"1.1.5"},"versions":{"0.0.0":{"name":"relike","version":"0.0.0","description":"Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{},"devDependencies":{"assertit":"^0.1.0"},"files":["index.js"],"keywords":["relike"],"bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@0.0.0","_shasum":"55e84e9c3d6a93d7279a1372c38092bd01ac533c","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"55e84e9c3d6a93d7279a1372c38092bd01ac533c","tarball":"https://registry.npmjs.org/relike/-/relike-0.0.0.tgz","integrity":"sha512-5l7UAk9sh900FBzp7sA2xOb8Q/f4cfRE037MHyirq4NVDQTGSzKHHnpW6E7EIaBpJ8IoGP/mfJtRLSR4Nk+chA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9/OrsJbZXfBTNhsQ481PTuSU1HMOU8fJw4RWBxqDH6wIhAKqRV6RMaE36btA2bMBmwL0ISK/WtC9wYzLrJ+vuDbHk"}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.0":{"name":"relike","version":"1.0.0","description":"Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"handle-arguments":"^3.0.4","is-async-function":"^1.1.0","lazy-cache":"^1.0.3","native-or-another":"^3.0.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0","is-buffer":"^1.1.0","isarray":"1.0.0","pinkie":"^2.0.1","semver":"^5.0.3"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"gitHead":"52140842376c7f16f03efa270e3eb92ba20b5022","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.0.0","_shasum":"c328c6627bf794313629243f91baf2d132070332","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"c328c6627bf794313629243f91baf2d132070332","tarball":"https://registry.npmjs.org/relike/-/relike-1.0.0.tgz","integrity":"sha512-ia70yQduxvDv+prTqfEKfMZl/udU2VyGrkxaIHgUSBJ4Zl185+X8bzdPpZwTCTif9qcJZwVj0NV70Xrdy85A0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDb5cAfLNhjagaCly4B1fLhAyuGSRAbp8oEU/rdlOL6YQIgd59rmcMBsRsH8Tvw1lD5VtoQ4eE0StnbHM8fgtd4jZs="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.1":{"name":"relike","version":"1.0.1","description":"Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"handle-arguments":"^3.0.4","is-async-function":"^1.1.0","lazy-cache":"^1.0.3","native-or-another":"^3.0.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0","is-buffer":"^1.1.0","isarray":"1.0.0","pinkie":"^2.0.1","semver":"^5.0.3"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"gitHead":"ac3e024a0229792dd4da43470b0ed7f58ee737eb","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.0.1","_shasum":"bed7a921aeadf6e0d755983d4ea0e22a651727bb","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.4.1","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"bed7a921aeadf6e0d755983d4ea0e22a651727bb","tarball":"https://registry.npmjs.org/relike/-/relike-1.0.1.tgz","integrity":"sha512-ljq46NAp7lEMJLRtrivbBj6EMTaiTy/qA6/Fej8vjU0oIKocd4doPP+b35i0D7hKgpy1NVb/PgbpgGUx53BubA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtgCN/fWPsOzmracJnGT8gcg03GkTyQT8bhhIc5DST3AiEAh5YWc8Avh//4ASLtpBYE0ljhXgfqUKZrXKn/AWkGOX0="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.2":{"name":"relike","version":"1.0.2","description":"Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"handle-arguments":"^3.0.4","is-async-function":"^1.1.0","lazy-cache":"^1.0.3","native-or-another":"^3.0.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0","is-buffer":"^1.1.0","isarray":"1.0.0","pinkie":"^2.0.1","semver":"^5.0.3"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"gitHead":"60b5802f22f99126fd181b3a383ee957ddeaa988","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.0.2","_shasum":"1a7ab9a12b4b97f17c5163046cc6e154a087cae1","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"1a7ab9a12b4b97f17c5163046cc6e154a087cae1","tarball":"https://registry.npmjs.org/relike/-/relike-1.0.2.tgz","integrity":"sha512-z+ZPJEuZ5oG/K44ScKJ0gV3e2Zh9T866NsKBn6sDJQGX5NFL3KERPH3HkWHASFfOHw2B5rBvtVPhrVtuBHtp+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWNrDMCcsUV77+SM2LSfRy+pmKNA07Zx7oow39vh5C6gIhAJHrueFP7zsZc718F2LkiyL58ty6FS/yNDQSoiFo6C5z"}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.0.3":{"name":"relike","version":"1.0.3","description":"Simple promisify a callback-style function with sane defaults. Support promisify-ing sync functions.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"handle-arguments":"^3.0.4","is-async-function":"^1.1.0","lazy-cache":"^1.0.3","native-or-another":"^3.0.1","sliced":"^1.0.1"},"devDependencies":{"assertit":"^0.1.0","is-buffer":"^1.1.0","isarray":"1.0.0","pinkie":"^2.0.1","semver":"^5.0.3"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"gitHead":"56ebb4aecc0b46b8db04efc70673b46643a69b26","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.0.3","_shasum":"61f425387cd582fc7ab945f50817c45fe4785003","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.5.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"61f425387cd582fc7ab945f50817c45fe4785003","tarball":"https://registry.npmjs.org/relike/-/relike-1.0.3.tgz","integrity":"sha512-0tbQz1qF5vx54+vsB4yQEwEZfm7wN3zLAqi1rhkARJuRcwGWhThXgAS/l/5SCEIu8G2/sSlruvo2qQ0Un/cVDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlnUp5HfNYssLt9u5knhb1wYvRb/PRle4zQzdTtMom5QIgYtEih4jLVbOZPDDjs/ZnH9COBn7YhQO2HZqMLQoPqAM="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"directories":{}},"1.1.0":{"name":"relike","version":"1.1.0","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"dezalgo":"^1.0.3","handle-arguments":"^3.1.0","is-async-function":"^1.1.3","lazy-cache":"^2.0.1","native-or-another":"^3.0.2","onetime":"^1.1.0","sliced":"^1.0.1"},"devDependencies":{"is-buffer":"^1.1.3","isarray":"^1.0.0","mukla":"^0.4.1","pinkie":"^2.0.4","pre-commit":"*","semver":"^5.1.0"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"verb":{"reflinks":["bluebird","through2","use","is-async-function","common-callback-names","relike-all"],"run":true,"toc":false,"layout":"empty","lint":{"reflinks":true},"tasks":["readme"],"related":{"list":["callback2stream","hybridify","letta","limon","promise2stream","relike-all","use","use-ware","value2stream"]}},"gitHead":"251aa0ce488c041db004394b0b61117eca488389","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.1.0","_shasum":"26e4f45cf802a2045b68cf9f9e2b7dbe527e0c07","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"26e4f45cf802a2045b68cf9f9e2b7dbe527e0c07","tarball":"https://registry.npmjs.org/relike/-/relike-1.1.0.tgz","integrity":"sha512-/YSZa5ZkcQbY5357HPorF3iKqmq8Gf0Cr3jRTpnBABsKeCF0dW9PoBNyA6ljmjiSgKu8tQgRBCUgiGhBZ3gQeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+GipcZ93sjM/Wf9rcEg7eXJToOp1FryqAvZbzin+A+AiEAjnYDi2OCC5CZ8HCyex/SWRSQtiLY4kZ2hfe6rZTfclc="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/relike-1.1.0.tgz_1463070676933_0.9536712353583425"},"directories":{}},"1.1.1":{"name":"relike","version":"1.1.1","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"dezalgo":"^1.0.3","handle-arguments":"^3.1.0","is-async-function":"^1.1.3","lazy-cache":"^2.0.1","native-or-another":"^3.0.2","onetime":"^1.1.0","sliced":"^1.0.1"},"devDependencies":{"is-buffer":"^1.1.3","isarray":"^1.0.0","mukla":"^0.4.1","pinkie":"^2.0.4","pre-commit":"*","semver":"^5.1.0"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"verb":{"reflinks":["bluebird","through2","use","is-async-function","common-callback-names","relike-all"],"run":true,"toc":false,"layout":"empty","lint":{"reflinks":true},"tasks":["readme"],"related":{"list":["callback2stream","hybridify","letta","limon","promise2stream","relike-all","use","use-ware","value2stream"]}},"gitHead":"9983b146c6e5a2251b7fdef5aa1fa49da926a2f9","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.1.1","_shasum":"7509d4849f523811a3a90b8c9fde28d7a67306b4","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"7509d4849f523811a3a90b8c9fde28d7a67306b4","tarball":"https://registry.npmjs.org/relike/-/relike-1.1.1.tgz","integrity":"sha512-TFoJ0yNvuFGUwxZU9c/nVX2m3mBYiJuOtQ5MDnutOEHaE0bE/FCHmOmz0sly8VyLOoMRA/xM3k/HnS8CgFaaNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCswnwbayyNU5LZNLqPihfCD/3VmaTO18MWsx12Dc8w4AIgFBpR+1qj5k05++otFqadBn2XnR+0/t9hCzz7ZnLklJ8="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/relike-1.1.1.tgz_1463072035134_0.06070689158514142"},"directories":{}},"1.1.2":{"name":"relike","version":"1.1.2","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"dezalgo":"^1.0.3","handle-arguments":"^3.1.0","is-async-function":"^1.1.3","lazy-cache":"^2.0.1","native-or-another":"^3.0.2","onetime":"^1.1.0","sliced":"^1.0.1"},"devDependencies":{"is-buffer":"^1.1.3","isarray":"^1.0.0","mukla":"^0.4.1","pinkie":"^2.0.4","pre-commit":"*","semver":"^5.1.0"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"verb":{"reflinks":["bluebird","common-callback-names","is-async-function","relike-all","through2","use","relike"],"run":true,"toc":false,"layout":"empty","lint":{"reflinks":true},"tasks":["readme"],"related":{"list":["callback2stream","hybridify","letta","limon","promise2stream","relike-all","use","use-ware","value2stream"]}},"gitHead":"05d23dc5f154436dc3a7a472fd870ce229e36681","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.1.2","_shasum":"12651675d5d8e18303659e4efcd19123a80c6a72","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"12651675d5d8e18303659e4efcd19123a80c6a72","tarball":"https://registry.npmjs.org/relike/-/relike-1.1.2.tgz","integrity":"sha512-pGOjK2N1qGt+6Wr8Vm2ymcyTo8vVD8DFScXIMNpAFKeHJ5VxMuds4B3kPnWpVj8BqalbUVjgHa64+vqugWTm+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8aiHa6ogiAhEC+A9JN26TgFhtdtk+e+t/TGbTaNwJ3gIhALCqEVY6ePamHCP7kYhiYX6hE+N8W0tyEfRhBC/0KK0N"}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/relike-1.1.2.tgz_1463310878231_0.7210304215550423"},"directories":{}},"1.1.3":{"name":"relike","version":"1.1.3","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"dezalgo":"^1.0.3","handle-arguments":"^3.1.0","is-async-function":"^1.1.3","lazy-cache":"^2.0.1","native-or-another":"^3.0.2","onetime":"^1.1.0","sliced":"^1.0.1"},"devDependencies":{"is-buffer":"^1.1.3","isarray":"^1.0.0","mukla":"^0.4.1","pinkie":"^2.0.4","pre-commit":"*","semver":"^5.1.0"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"verb":{"reflinks":["bluebird","common-callback-names","is-async-function","relike-all","through2","use","relike"],"run":true,"toc":false,"layout":"empty","lint":{"reflinks":true},"tasks":["readme"],"related":{"list":["callback2stream","hybridify","letta","limon","promise2stream","relike-all","use","use-ware","value2stream"]}},"gitHead":"add2d1375407be9c62a9bea147fda82363dab46f","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.1.3","_shasum":"ff3c651213e9e61df7289d568193e42baa19356f","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"ff3c651213e9e61df7289d568193e42baa19356f","tarball":"https://registry.npmjs.org/relike/-/relike-1.1.3.tgz","integrity":"sha512-bj8GYz4LZahtY10eyi+oVLJ1Z0KD8OBr78b6/+ANCP6gDVEB3qoPDX31o6dOhYAumUe78PamqEkZtXVwh8fS0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1ZLX4ph9LF7A1GlhzxgFHkyCAr23ORrB0kaL0k4j03QIhAKL2kX683syXF5D+sKkQ/5z1owKMkrbP4f96pMZysQNe"}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/relike-1.1.3.tgz_1463313974734_0.7912550969049335"},"directories":{}},"1.1.4":{"name":"relike","version":"1.1.4","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"dezalgo":"^1.0.3","handle-arguments":"^3.1.0","is-async-function":"^1.1.3","lazy-cache":"^2.0.1","native-or-another":"^3.0.2","onetime":"^1.1.0","sliced":"^1.0.1"},"devDependencies":{"is-buffer":"^1.1.3","isarray":"^1.0.0","mukla":"^0.4.1","pinkie":"^2.0.4","pre-commit":"*","semver":"^5.1.0"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"verb":{"reflinks":["bluebird","common-callback-names","is-async-function","relike-all","through2","use","relike"],"run":true,"toc":false,"layout":"empty","lint":{"reflinks":true},"tasks":["readme"],"related":{"list":["callback2stream","hybridify","letta","limon","promise2stream","relike-all","use","use-ware","value2stream"]}},"gitHead":"87f48c2124bcdcd48149c346c303f6bf0853f3d2","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.1.4","_shasum":"0daf3322151187d5978d3210c3dc8c5b5ce9c88d","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"0daf3322151187d5978d3210c3dc8c5b5ce9c88d","tarball":"https://registry.npmjs.org/relike/-/relike-1.1.4.tgz","integrity":"sha512-UJP73iIb7h7t9FDUFpQQ1nfWEISq2iQBV4Lu2fyNQOggsr6w7UU1jiUmK4CJUL20Y+0vee2PiyyrGWRs1zmYLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUKeqnUXblsaj6bbL5A73gNCyR8p+m1VKSTERqCPj+iQIgPlp9p000IvMIP89rd0RXxQ4JnLLXJFCJvvpPrO9U+6U="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/relike-1.1.4.tgz_1463346306682_0.1461782925762236"},"directories":{}},"1.1.5":{"name":"relike","version":"1.1.5","description":"Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.","repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"precommit.silent":true,"main":"index.js","license":"MIT","scripts":{"test":"standard && node test.js"},"dependencies":{"dezalgo":"^1.0.3","handle-arguments":"^3.1.0","is-async-function":"^1.1.3","lazy-cache":"^2.0.1","native-or-another":"^3.0.2","onetime":"^1.1.0","sliced":"^1.0.1"},"devDependencies":{"is-buffer":"^1.1.3","isarray":"^1.0.0","mukla":"^0.4.1","pinkie":"^2.0.4","pre-commit":"*","semver":"^5.1.0"},"files":["index.js","utils.js"],"keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"verb":{"reflinks":["bluebird","common-callback-names","is-async-function","relike","relike-all","through2","use","hybridify","hybridify-all","letta"],"run":true,"toc":false,"layout":"empty","lint":{"reflinks":true},"tasks":["readme"],"related":{"list":["callback2stream","hybridify","letta","limon","promise2stream","relike-all","use","use-ware","value2stream"]}},"gitHead":"00f70da71ce9f31385ab86b18025d9f34fc2d6eb","bugs":{"url":"https://github.com/hybridables/relike/issues"},"homepage":"https://github.com/hybridables/relike#readme","_id":"relike@1.1.5","_shasum":"2d557f3b394a98c6a7713ec01320b2fe7dcb9da4","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.8.0","_npmUser":{"name":"tunnckocore","email":"mameto_100@mail.bg"},"dist":{"shasum":"2d557f3b394a98c6a7713ec01320b2fe7dcb9da4","tarball":"https://registry.npmjs.org/relike/-/relike-1.1.5.tgz","integrity":"sha512-Q0yjPd1Ubxn3rUMmEAYzyfwxmBONn0kyZpAoz0RWvuSMlcpqd9HuFBst5rR9vzFmIzr6JZ2lcTzn3J+IEuIOFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGQkwr/LZCzZOjxBHONIQY4SBuA+jsP8h4LNyb6/L7iSAiEAkQM+ifgvFyxf5JXd/9/r4aCIRJFeyeV6wquZZJ7QNWc="}]},"maintainers":[{"name":"tunnckocore","email":"mameto_100@mail.bg"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/relike-1.1.5.tgz_1463352754380_0.26850042399019003"},"directories":{}}},"readme":"# [relike][author-www-url] [![npmjs.com][npmjs-img]][npmjs-url] [![The MIT License][license-img]][license-url] [![npm downloads][downloads-img]][downloads-url] \n\n> Simple promisify async or sync function with sane defaults. Lower level than `promisify` thing. Can be used to create `promisify` method.\n\n[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]\n\nYou might also be interested in [hybridify][], [hybridify-all][], [relike-all][], [letta][]\n\n## Install\n```\nnpm i relike --save\n```\n\n## Usage\n> For more use-cases see the [tests](./test.js)\n\n```js\nconst relike = require('relike')\n```\n\n**Note:** It treat functions as asynchronous, based on [is-async-function][].  \n\nWhy you should be aware of that? Because if you give async function which don't have last argument called with some of the [common-callback-names][] it will treat that function as synchronous and things may not work as expected.\n\nIt's not a problem for most of the cases and for node's native packages, because that's a convention.\nSo, the [relike-all][] package successfuly can promisifies all of the `fs` functions for example, except `fs.createReadStream` and `fs.createWriteStream` which is normal.\n\n### [relike](index.js#L42)\n> Runs `fn` in native Promise if available, or another provided in `relike.Promise`. If not given and not support for native Promise, it will use [bluebird][] promise, but only on that enviroments that don't have support.\n\n**Params**\n\n* `<fn>` **{Function}**: Some async or synchronous function.    \n* `[...args]` **{Mixed}**: Any number of any type of arguments, they are passed to `fn`.    \n* `returns` **{Promise}**: Always native Promise if supported on enviroment.  \n\n**Example**\n\n```js\nconst fs = require('fs')\nconst request = require('request')\nconst relike = require('relike')\n\nrelike(fs.readFile, 'package.json', 'utf-8').then(data => {\n  console.log(JSON.parse(data).name) // => 'relike'\n})\n\n// handles multiple arguments by default (comes from `request`)\nrelike(request, 'http://www.tunnckocore.tk/').then(result => {\n  const [httpResponse, body] = result\n})\n```\n\n### [.promisify](index.js#L110)\n> Thin wrapper function around `relike()`. It **accepts a function** and **returns a function**, which when is invoked returns a `Promise`. Just like any other `.promisify` method, for example `Bluebird.promisify`.\n\n**Params**\n\n* `fn` **{Function}**: Some sync or async function to promisify.    \n* `[Promize]` **{Function}**: Promise constructor to be used on enviroment where no support for native.    \n* `returns` **{Function}**: Promisified function, which always return a Promise.  \n\n**Example**\n\n```js\nvar fs = require('fs')\nvar relike = require('relike')\nvar readFile = relike.promisify(fs.readFile)\n\nreadFile('package.json', 'utf8')\n  .then(JSON.parse)\n  .then(data => {\n    console.log(data.name) // => 'relike'\n  })\n\n// also can promisify sync function\nvar statFile = relike.promisify(fs.statSync)\nstatFile('package.json')\n  .then(function (stats) {\n    console.log(stats.mtime)\n  })\n```\n\n### .Promise\n\nWhile `relike` always trying to use native Promise if available in the enviroment, you can\ngive a Promise constructor to be used on enviroment where there's no support - for example, old\nbroswers or node's 0.10 version. By default, `relike` will use and include [bluebird][] on old enviroments,\nas it is the fastest implementation of Promises. So, you are able to give Promise constructor, but\nit won't be used in modern enviroments - it always will use native Promise, you can't trick that. You\ncan't give custom promise implementation to be used in any enviroment.\n\n**Example**\n\n```js\nvar fs = require('fs')\nvar relike = require('relike')\n\nrelike.promisify.Promise = require('q') // using `Q` promise on node 0.10\nvar readFile = relike.promisify(fs.readFile)\n\nreadFile('package.json', 'utf8')\n  .then(console.log, console.error)\n```\n\nOne way to pass a custom Promise constructor is as shown above. But the other way is passing it to `.Promise` of the promisified function, like that\n\n```js\nvar fs = require('fs')\nvar relike = require('relike')\nvar statFile = relike.promisify(fs.stat)\n\nstatFile.Promise = require('when') // using `when` promise on node 0.10\nstatFile('package.json').then(console.log, console.error)\n```\n\nOne more thing, is that you can access the used Promise and can detect what promise is used. It is easy, just as `promise.Promise` and you'll get it.\nOr look for `promise.___bluebirdPromise` and `promise.___customPromise` properties. `.___bluebirdPromise` (yea, with three underscores in front) will be true if enviroment is old and you didn't provide promise constructor to `.Promise`.  \nSo, when you give constructor `.__customPromise` will be true and `.___bluebirdPromise` will be false.\n\n```js\nvar fs = require('fs')\nvar relike = require('relike')\n\nvar promise = relike(fs.readFile, 'package.json', 'utf8')\npromise.then(JSON.parse).then(function (val) {\n  console.log(val.name) // => 'relike'\n}, console.error)\n\nconsole.log(promise.Promise) // => used Promise constructor\nconsole.log(promise.___bluebirdPromise) // => `true` on old env, falsey otherwise\nconsole.log(promise.___customPromise) // => `true` when pass `.Promise`, falsey otherwise\n```\n\nOr finally, you can pass Promise constructor as second argument to `.promisify` method. Like that\n\n```js\nconst fs = require('fs')\nconst relike = require('relike')\nconst readFile = relike.promisify(fs.readFile, require('when'))\n\nconst promise = readFile('index.js')\n\nconsole.log(promise.Promise) // => The `when` promise constructor, on old enviroments\nconsole.log(promise.___customPromise) // => `true` on old environments\n```\n\n## Related\n* [callback2stream](https://www.npmjs.com/package/callback2stream): Transform sync, async or generator function to Stream. Correctly handle errors. [homepage](https://github.com/hybridables/callback2stream)\n* [hybridify](https://www.npmjs.com/package/hybridify): Create sync or async function to support both promise and callback-style APIs… [more](https://www.npmjs.com/package/hybridify) | [homepage](https://github.com/hybridables/hybridify)\n* [letta](https://www.npmjs.com/package/letta): Promisify sync, async or generator function, using [relike][]. Kind of promisify, but… [more](https://www.npmjs.com/package/letta) | [homepage](https://github.com/hybridables/letta)\n* [limon](https://www.npmjs.com/package/limon): The pluggable JavaScript lexer. Limon = Lemon. | [homepage](https://github.com/limonjs/limon)\n* [promise2stream](https://www.npmjs.com/package/promise2stream): Transform ES2015 Promise to Stream - specifically, Transform Stream using… [more](https://www.npmjs.com/package/promise2stream) | [homepage](https://github.com/hybridables/promise2stream)\n* [relike-all](https://www.npmjs.com/package/relike-all): Promisify all functions in an object, using `relike`. | [homepage](https://github.com/hybridables/relike-all)\n* [use-ware](https://www.npmjs.com/package/use-ware): Adds sync plugin support to your application. Kinda fork of [use][] -… [more](https://www.npmjs.com/package/use-ware) | [homepage](https://github.com/tunnckocore/use-ware)\n* [use](https://www.npmjs.com/package/use): Easily add plugin support to your node.js application. | [homepage](https://github.com/jonschlinkert/use)\n* [value2stream](https://www.npmjs.com/package/value2stream): Transform any value to stream. Create a stream from any value -… [more](https://www.npmjs.com/package/value2stream) | [homepage](https://github.com/hybridables/value2stream)\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/hybridables/relike/issues/new).  \nBut before doing anything, please read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines.\n\n## [Charlike Make Reagent](http://j.mp/1stW47C) [![new message to charlike][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]\n\n[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]\n\n[hybridify]: https://github.com/hybridables/hybridify\n[hybridify-all]: https://github.com/hybridables/hybridify-all\n[bluebird]: https://github.com/petkaantonov/bluebird\n[common-callback-names]: https://github.com/tunnckocore/common-callback-names\n[is-async-function]: https://github.com/tunnckocore/is-async-function\n[letta]: https://github.com/hybridables/letta\n[relike]: https://github.com/hybridables/relike\n[relike-all]: https://github.com/hybridables/relike-all\n[through2]: https://github.com/rvagg/through2\n[use]: https://github.com/jonschlinkert/use\n\n[npmjs-url]: https://www.npmjs.com/package/relike\n[npmjs-img]: https://img.shields.io/npm/v/relike.svg?label=relike\n\n[license-url]: https://github.com/hybridables/relike/blob/master/LICENSE\n[license-img]: https://img.shields.io/npm/l/relike.svg\n\n[downloads-url]: https://www.npmjs.com/package/relike\n[downloads-img]: https://img.shields.io/npm/dm/relike.svg\n\n[codeclimate-url]: https://codeclimate.com/github/hybridables/relike\n[codeclimate-img]: https://img.shields.io/codeclimate/github/hybridables/relike.svg\n\n[travis-url]: https://travis-ci.org/hybridables/relike\n[travis-img]: https://img.shields.io/travis/hybridables/relike/master.svg\n\n[coveralls-url]: https://coveralls.io/r/hybridables/relike\n[coveralls-img]: https://img.shields.io/coveralls/hybridables/relike.svg\n\n[david-url]: https://david-dm.org/hybridables/relike\n[david-img]: https://img.shields.io/david/hybridables/relike.svg\n\n[standard-url]: https://github.com/feross/standard\n[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg\n\n[author-www-url]: http://www.tunnckocore.tk\n[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg\n\n[keybase-url]: https://keybase.io/tunnckocore\n[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg\n\n[author-npm-url]: https://www.npmjs.com/~tunnckocore\n[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg\n\n[author-twitter-url]: https://twitter.com/tunnckoCore\n[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg\n\n[author-github-url]: https://github.com/tunnckoCore\n[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg\n\n[freenode-url]: http://webchat.freenode.net/?channels=charlike\n[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg\n\n[new-message-url]: https://github.com/tunnckoCore/ama\n[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg","maintainers":[{"email":"super.ludiq@gmail.com","name":"vanchoy"},{"email":"mameto2011@gmail.com","name":"tunnckocore"}],"time":{"modified":"2022-06-26T10:58:41.308Z","created":"2016-01-15T14:39:06.782Z","0.0.0":"2016-01-15T14:39:06.782Z","1.0.0":"2016-01-15T15:44:45.219Z","1.0.1":"2016-01-15T16:15:59.008Z","1.0.2":"2016-01-26T01:54:46.007Z","1.0.3":"2016-01-26T04:10:51.830Z","1.1.0":"2016-05-12T16:31:18.705Z","1.1.1":"2016-05-12T16:53:56.931Z","1.1.2":"2016-05-15T11:14:40.865Z","1.1.3":"2016-05-15T12:06:16.703Z","1.1.4":"2016-05-15T21:05:09.025Z","1.1.5":"2016-05-15T22:52:36.394Z"},"homepage":"https://github.com/hybridables/relike#readme","keywords":["anything","bluebird","callback","defaults","everywhere","native","native-promise","promise","promisify","simple"],"repository":{"type":"git","url":"git+https://github.com/hybridables/relike.git"},"author":{"name":"Charlike Mike Reagent","email":"@tunnckoCore","url":"http://www.tunnckocore.tk"},"bugs":{"url":"https://github.com/hybridables/relike/issues"},"license":"MIT","readmeFilename":"README.md"}