file-trie

0.1.1 • Public • Published

file-trie Build Status js-standard-style

Work in progress

Turn a file glob into a trie structure.

Installation

npm i -S file-trie

Usage

const fileTrie = require('file-trie')
 
fileTrie('some-dir/**/*.js').then(doStuff).catch(handleError)
 
fileTrie(['my-dir/**/*', '!my-dir/node_modules/**/*'])
  .then(doStuff)
  .catch(handleError)

Related

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Crafted with <3 by John Otander (@4lpine).


This package was initially generated with yeoman and the p generator.

Readme

Keywords

none

Package Sidebar

Install

npm i file-trie

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • johno