diff --git a/cli/commands.js b/cli/commands.js index 69804a2..5c80e44 100644 --- a/cli/commands.js +++ b/cli/commands.js @@ -2,7 +2,7 @@ 'use strict' -const util = require('util') +const { promisify } = require('util') const stream = require('stream') const vfs = require('vinyl-fs') @@ -82,7 +82,7 @@ const perform = async (action, argv) => { return transform } - const pipeline = util.promisify(stream.pipeline) + const pipeline = promisify(stream.pipeline) await pipeline( vfs.src(argv.file), cipher,