How to use es6-promisify

Comprehensive es6-promisify code examples:

How to use es6-promisify.promisify:

157
158
159
160
161
162
163
164
165
166
async Once(root) {
  const resolver = ResolverFactory.createResolver({
    fileSystem,
    ...resolveOptions,
  });
  const resolve = promisify(resolver.resolve.bind(resolver));
  const readFile = promisify(fileSystem.readFile.bind(fileSystem));

  let preprocessPlugins = [];
  if (preprocessValues) {