0.0.7 • Published 6 years ago

require-files v0.0.7

Weekly downloads
10
License
ISC
Repository
github
Last release
6 years ago

require-files

Require files with wildcards

Install

$ npm install require-files --save

Methods

get(includePaths, excludePaths)

It returns an array with every file found based on a wildcard string. excludePaths are not required.

const files = require('require-files').get('my/path/**/*.js');    

only(includePaths, excludePaths)

requires all files (without returning) found based on a wildcard string. excludePaths are not required.

require('require-files').only('my/path/**/*.js');