get-modules
Version:
get all filenames from `./modules`
45 lines (28 loc) • 1.48 kB
Markdown
[](https://coveralls.io/r/1-liners/get-modules?branch=master)
[](https://travis-ci.org/1-liners/get-modules)
[](https://david-dm.org/1-liners/get-modules)
[](http://badge.fury.io/js/get-modules)
get-modules
====
> get all filenames from `./modules`
## Usage
### Install
```
$ npm install --save get-modules
```
### Usage
```js
import getModules from 'get-modules';
getModules(__dirname, (err, files) => err? console.error('Doh!') : console.log(files));
```
### CLI
```bash
get-modules ./
```
## 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/)