Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

require everything in a directory

tree: 79ed4cce69

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

node-directory

A simple module to require all of the other paths in the current directory. A path is either a file or a directory.

Installation

npm install directory --save

Example

var directory = require('directory')

module.exports = function (mongoose, options) {
  options = options || { debug:false }

  directory(__dirname, function (module) {
    mongoose.plugin(module, options)
  })

}

MIT License

Something went wrong with that request. Please try again.