1.1.8 • Published 8 years ago

reqfile v1.1.8

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
8 years ago

reqfile

Simple module that allows to require files by name.

To require file by name or it's part, only one file with such name is allowed to exist in project.

Usage

By default only .js and .json files are allowed to be included and node_modules and .git folders are excluded.

var reqfile = require('reqfile'),
  userController = require(reqfile('user.server.controller'));

To customize inclusion/exclusion list, include .reqfileconfig file in project's root.

module.exports = {
  include: ['.html'],
  exclude: ['/public', '/typings']
};
1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago