redr

0.0.2 • Public • Published

Build Status

Redr

Lazy require for files.

Why?

  • Easy to mock.
  • Require only what you really have to.
  • Because I use it like everywhere and I'm too lazy to copy-paste code.

Install

$ npm install redr

Usage

var Redr = require('redr');
var files = new Redr('/path/to/controllers/').load();
var jobsController = files.get.jobs; // this will perform require

Features

  • Multiple paths
  • Validators

Tests

$ npm install
$ make test

License

MIT License.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    6
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    6
  • 0.0.1
    1

Package Sidebar

Install

npm i redr

Weekly Downloads

7

Version

0.0.2

License

none

Last publish

Collaborators

  • vesln