This package has been deprecated

Author message:

this version has been deprecated - use globby instead

deified

0.3.3 • Public • Published

deified

Fast, lightweight, asynchronous directory scanner built on micromatch

NPM Version NPM Downloads CI Build Test Coverage

const deified = require('deified');
const config = { //optional - all configuration has intuitive defaults
  filter: {
    regexes: ['/?test/'] //defaults to filter out hidden files and node_modules
  },
  glob: {
    globs: ['**/*.js'], //passed to micromatch - defaults to [**/*]
    options: {}, //options for micromatch mm() - defaults to undefied
  },
  scan: {
    options: { encoding: 'utf8' } //options for readdir - defaults to undefined
  }
};

const deify = deified.configure(config);
const paths = await deify({ directory: __dirname }); //pass the directory to scan - defaults to cwd

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 8.11.1 or higher is required.

Installation is done using the npm install command:

npm install deified

Features

  • Based on the fast micromatch
  • Filters apply during directory scanning to eliminate unnessesary IO
  • Globs apply after scanning to fine tune results
  • IO uses asynchronous filesystem calls

Filters and globs are inverses of each other

  • Filters remove paths that match (negative)
  • Globs keep paths that match (postive)

Tests

To run the test suite, first install the dependencies, then run npm test:

npm install
npm test

People

The original author of deified is Phillip Smith

The current lead maintainer is Phillip Smith

List of all contributors

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i deified

Weekly Downloads

2

Version

0.3.3

License

MIT

Unpacked Size

23.8 kB

Total Files

13

Last publish

Collaborators

  • phillipsmith