New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ctrlr

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ctrlr

Simple controller dispatcher

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

ctrlr

Simple controller dispatcher for node.

Auto loads all modules from a particular directory, using directory, and allows you to try to invoke the method.

There are some upcoming features, such as before actions etc.

(You can probably also use it on the client side with something like browserify)

Usage:

npm install ctrlr

Example usage:

var controllers = ctrlr(__dirname + '/controllers/');

controllers("cars#drive")('Filmore and Geary', 'Grant Ave and O\'farrel');
controllers('cars#shiftGears')(3);

License: MIT

Keywords

controller

FAQs

Package last updated on 29 Nov 2013

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