Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

chain-able-find

aretecode19MIT1.0.0

find files synchronously, easily, with a chainable interface

fluent, chain-able, chainable, find, glob, node, match, wildcard

readme

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

changelog

1.0.0

26/6/17

  • finally uploaded to use latest chain-able

0.0.1

9/4/17

  • async support
  • add configurable abs support
  • adding docs folder
  • tests for glob compat from globby tests
  • exporting function, ensuring it is usable as class chainable and with options
  • setting up metadata
  • adding examples
  • updating readme with examples
  • updating readme linking to tests and bench

4/4/17

  • adding test fixtures
  • travis file
  • readme

3/4/17

  • adding benchmarks
  • adding example

1/4/17

  • glob to regex fork