module-indexer
Version:
creates a `index.js` for es6 modules
45 lines (28 loc) • 1.52 kB
Markdown
[](https://coveralls.io/r/1-liners/module-indexer?branch=master)
[](https://travis-ci.org/1-liners/module-indexer)
[](https://david-dm.org/1-liners/module-indexer)
[](http://badge.fury.io/js/module-indexer)
module-indexer
====
> creates a `index.js` for es6 modules
## Usage
### Install
```
$ npm install --save module-indexer
```
### Usage
```js
import moduleIndexer from 'module-indexer';
moduleIndexer(__dirname, (err) => err? console.error('Doh!') : console.log('Created'));
```
### CLI
```bash
module-indexer ./
```
## Maintainers
| [](https://github.com/stoeffel) | [](https://github.com/hemanth) | [](https://github.com/tomekwi) |
| :--:|:--:|:--: |
| [stoeffel](https://github.com/stoeffel) | [hemanth](https://github.com/hemanth) | [tomekwi](https://github.com/tomekwi) |
created with [gh-contributors-table](https://github.com/stoeffel/gh-contributors-table)
## License
MIT © [stoeffel](http://schtoeffel.ch) [tomekwi](http://github.com/tomekwi) [hemanth](http://www.h3manth.com/)