# controller-autoload

> Autoload all the packages in a certain directory. Useful for loading restify controllers.

Latest version **0.0.2** (published 2016-07-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install controller-autoload
pnpm add controller-autoload
yarn add controller-autoload
bun add controller-autoload
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-07-29 |
| First published | 2016-07-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tom Constantine |
| Maintainers | seaoftea |

## Links

- npm: https://www.npmjs.com/package/controller-autoload
- npm.io page: https://npm.io/package/controller-autoload

## Recent versions

- 0.0.2 (latest) — 2016-07-29
- 0.0.1 — 2016-07-29

## README

# controller-autoload

A simple autoloader for your controller. Simply require it and pass in your restify server and controller folder. This will save you having to load them yourself in the routes/controller directory.

## Install
    npm install --save controller-autoload

## Usage
    var routes  = require('controller-autoload');
    var restify = require('restify');
    
    var server = restify.createServer({});
    routes(server, 'routes');

Loading your routes should come after loading your restify middleware.

# License
MIT

---
_Source: https://npm.io/package/controller-autoload · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
