globelet

1.0.0 • Public • Published

💧 Globelet

Codecov npm package NPM downloads

Extends globby with support for directory

Installation

npm install globelet

Usage

└── dir
  ├── one.js
  ├── two.jsx
  └── three.tmp
const globelet = require('globelet');
 
globelet(['./dir'], {
  globelet: ['.js', '.jsx'] // default: matches js jsx files
})
.then(paths => {
  console.log(paths);
  //=> ['./dir/one.js', './dir/two.jsx']
});

API

Dependents (0)

Package Sidebar

Install

npm i globelet

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • noyobo