1.0.0 • Published 7 years ago

chain-able-find v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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