mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
10 lines
386 B
TypeScript
10 lines
386 B
TypeScript
import matchdep = require('matchdep');
|
|
|
|
const packageJson = {};
|
|
|
|
const singlePattern = matchdep.filter('mini*');
|
|
const devDependencies = matchdep.filterDev('grunt-contrib-*', './package.json');
|
|
const peerDependencies = matchdep.filterPeer('foo-{bar,baz}', './some-other.json');
|
|
const all = matchdep.filterAll('*', packageJson);
|
|
const arrayPaterns = matchdep.filterAll(['*', '!grunt']);
|