UNPKG

denoify

Version:

For NPM module authors that would like to support Deno but do not want to write and maintain a port.

18 lines (13 loc) 432 B
import * as glob from "glob"; export function globProxyFactory(params: { cwdAndRoot: string }) { const { cwdAndRoot } = params; function globProxy(params: { pathWithWildcard: string }): string[] { const { pathWithWildcard } = params; return glob.sync(pathWithWildcard, { "cwd": cwdAndRoot, "root": cwdAndRoot, "dot": true }); } return { globProxy }; }