package name matches a give module path
* @param {String} modulePath
* @returns {(moduleName: string) => boolean}
*/
const matchWithNodeModulePath = modulePath =>
moduleName => !(new RegExp(`node_modules\/${moduleName}`).test(modulePath));
what do you guys this of this description for the documentation. does it make sense?
You're missing a param
Обсуждают сегодня