Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
require everything in a directory
JavaScript
Tree: 7d7f8befc4

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README.md
index.js
npm-debug.log
package.json

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(function (module) {
    mongoose.plugin(module, options)
  })

}

MIT License

Something went wrong with that request. Please try again.