UNPKG

@perfective/eslint-config

Version:
11 lines (10 loc) 357 B
/** * Returns true if a given `module` can be resolved in node_modules. * * A module does not have to be required directly by the package.json. * The function returns true, * even if it is installed as a dependency of another dependency but can be loaded by Node.js. * * @protected */ export declare function hasNodeModule(module: string): boolean;