require-files

0.0.7 • Public • Published

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');    

Readme

Keywords

Package Sidebar

Install

npm i require-files

Weekly Downloads

31

Version

0.0.7

License

ISC

Last publish

Collaborators

  • brab0