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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i require-files

    Weekly Downloads

    9

    Version

    0.0.7

    License

    ISC

    Last publish

    Collaborators

    • brab0