UNPKG

@modyqyw/fabric

Version:

Opinionated shareable specifications for git-based JavaScript/TypeScript projects.

24 lines (18 loc) 747 B
'use strict'; const multimatch = require('multimatch'); const constants = require('./fabric.Bxa-91bp.cjs'); function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; } const multimatch__default = /*#__PURE__*/_interopDefaultCompat(multimatch); function interopDefault(m) { return m.default || m; } function isBoolean(value) { return typeof value === "boolean"; } function filterFilenames(filenames, patterns = constants.GLOB_EXCLUDE) { const matched = multimatch__default(filenames, patterns, { matchBase: true }); return filenames.filter((n) => !matched.includes(n)); } exports.filterFilenames = filterFilenames; exports.interopDefault = interopDefault; exports.isBoolean = isBoolean;