Skip to content

brab0/require-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors