Closed davej closed 9 years ago
I have tons of boilerplate which could be moved to require, for example:
require
temp-open = promisify(temp.open) fs-read = promisify(fs.read-file) fs-write = promisify(fs.write) fs-close = promisify(fs.close) replace = promisify(replace-in-file) nginx-conf-edit = promisify(nginx-conf.NginxConfFile.create)
@breuleux's suggestion: require: fs -> (promisify! read-file, promisify! write)
require: fs -> (promisify! read-file, promisify! write)
0.0.10 now allows require: fs -> (promisify! read-file, promisify! write)
0.0.10
I have tons of boilerplate which could be moved to
require
, for example:@breuleux's suggestion:
require: fs -> (promisify! read-file, promisify! write)