# dirmap

``` javascript
/**
 * Accepts a dir path and returns an object mapping file names to their full
 * path. If dropExtension is true, the file extension is dropped from the
 * object keys. Does not recurse into directories.
 *
 * @param   {string}  dir
 * @param   {boolean} dropExtension
 * @returns {object}
 */
```

## Example

``` javascript
dirmap('.', true);
// { '.git': '/Users/danielstjules/dirmap/.git',
// '.gitignore': '/Users/danielstjules/dirmap/.gitignore',
// LICENSE: '/Users/danielstjules/dirmap/LICENSE',
// README: '/Users/danielstjules/dirmap/README.md',
// index: '/Users/danielstjules/dirmap/index.js',
// package: '/Users/danielstjules/dirmap/package.json' }
```

# dirmap

``` javascript
/**
 * Accepts a dir path and returns an object mapping file names to their full
 * path. If dropExtension is true, the file extension is dropped from the
 * object keys. Does not recurse into directories.
 *
 * @param   {string}  dir
 * @param   {boolean} dropExtension
 * @returns {object}
 */
```

## Installation

```
npm install dirmap
```

## Example

``` javascript
var dirmap = require('dirmap');

dirmap('.', true);
// { '.git': '/Users/danielstjules/dirmap/.git',
// '.gitignore': '/Users/danielstjules/dirmap/.gitignore',
// LICENSE: '/Users/danielstjules/dirmap/LICENSE',
// README: '/Users/danielstjules/dirmap/README.md',
// index: '/Users/danielstjules/dirmap/index.js',
// package: '/Users/danielstjules/dirmap/package.json' }
```

Add installation to readme, update example
Add installation to readme, update example
