D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
alt-nodejs11
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
libnpx
/
Filename :
util.js
back
Copy
'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) })) }) } } }