chain-able-find

1.0.0 • Public • Published

chain-able-find

find files synchronously, easily, with a fluent interface

Build Status NPM version MIT License chain-able-find Dependencies

📦 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,
})

🌐 documentation

🔬 tests

🏋️ benchmarks

Package Sidebar

Install

npm i chain-able-find

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • aretecode