chain-able-find
v1.0.0
Published
find files synchronously, easily, with a chainable interface
Downloads
25
Maintainers
Readme
chain-able-find
find files synchronously, easily, with a fluent interface
📦 install
yarn add chain-able-find
npm i chain-able-find --save
const ff = require('chain-able-find')
📘 examples
glob compat syntax
const found = ff(['!*.js', 'a.js'], {sync: false})
chainable syntax
const found = ff
.init()
.recursive(true)
.ignoreDirs(['ignant'])
.matchFiles(['**/*.js'])
.abs(true)
.sync(true)
.find(cwd)
.results()
object syntax
const found = ff({
matchFiles: ['**/*.js'],
recursive: true,
ignoreDirs: ['ignant'],
abs: true,
sync: true,
cwd: entry,
})