# directory

> require everything in a directory

Latest version **0.1.0** (published 2012-05-06) · 0 weekly downloads

## Install

```sh
npm install directory
pnpm add directory
yarn add directory
bun add directory
```

## 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.1.0 |
| Published | 2012-05-06 |
| First published | 2011-12-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Thomas Blobaum |
| Maintainers | tblobaum |

## Links

- npm: https://www.npmjs.com/package/directory
- Repository: https://github.com/tblobaum/directory
- npm.io page: https://npm.io/package/directory

## Recent versions

- 0.1.0 (latest) — 2012-05-06
- 0.0.9 — 2012-02-21
- 0.0.8 — 2012-01-03
- 0.0.7 — 2011-12-25
- 0.0.61 — 2011-12-16
- 0.0.6 — 2011-12-06
- 0.0.0 — 2011-12-06

## README

# directory
[![Build Status](https://secure.travis-ci.org/tblobaum/directory.png)](http://travis-ci.org/tblobaum/directory) 

require all files and directories inside a directory synchronously

## Example
Any of the below

```javascript

// return an object hash
var dir = require('directory')

// or pass a callback
require('directory')(function (module, name) {
  exports[name] = module
})

// or pass a different path
var dir = require('directory')(__dirname +'/../plugins/')

// or pass both
var dir = require('directory')(__dirname +'/plugins/', function (module, name) {
  exports[name] = module
})

````

## Installation

`npm install directory`

## Usage

require('directory')([dirname, iterator])

## Tests

`npm install mocha -g` and `make test`

## License

MIT

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