'use strict' module.exports.promisify = promisify function promisify (f) { const util = require('util') if (util.promisify) { return util.promisify(f) } else { return function () { return new Promise((resolve, reject) => { f.apply(this, [].slice.call(arguments).concat((err, val) => { err ? reject(err) : resolve(val) })) }) } } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
locales | Folder | 0755 |
|
|
CHANGELOG.md | File | 27.48 KB | 0644 |
|
LICENSE.md | File | 755 B | 0644 |
|
README.md | File | 6.31 KB | 0644 |
|
auto-fallback.js | File | 1.51 KB | 0644 |
|
child.js | File | 2.2 KB | 0644 |
|
get-prefix.js | File | 1.23 KB | 0644 |
|
index.js | File | 12.62 KB | 0644 |
|
libnpx.1 | File | 6.7 KB | 0644 |
|
package.json | File | 9.18 KB | 0644 |
|
parse-args.js | File | 7.1 KB | 0644 |
|
util.js | File | 390 B | 0644 |
|
y.js | File | 490 B | 0644 |
|