/
home
/
henzagold
/
site
/
node_modules
/
globby
/
File Upload :
llllll
Current File: //home/henzagold/site/node_modules/globby/utilities.js
import {fileURLToPath} from 'node:url'; import {Transform} from 'node:stream'; export const toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath; export class FilterStream extends Transform { constructor(filter) { super({ objectMode: true, transform(data, encoding, callback) { callback(undefined, filter(data) ? data : undefined); }, }); } } export const isNegativePattern = pattern => pattern[0] === '!';
Copyright ©2k19 -
Hexid
|
Tex7ure