1.0.0 • Published 6 years ago
source-finder v1.0.0
Install
$ npm i source-finder
Usage
const sourceFinder = require('source-finder');
const root = process.cwd();
const source = 'src';
const sourceLists = sourceFinder.find(root, source, {
recursive: true
});
const base = sourceFinder.base(source)
API
find(root, source, options)
Return a arrary of source path.
options
Type: Object
recursive:Boolean
| eliminated:Boolean
| dotfiles:Boolean
root
Type: String
source
Type: String
License
MIT
1.0.0
6 years ago