Socket
Book a DemoInstallSign in
Socket

redr

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redr

Lazy require with filter logic

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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.

Keywords

require

FAQs

Package last updated on 04 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts