Newsworthy Presidential Mistakes
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

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

Keywords

install

npm i globelet

Downloadsweekly downloads

8

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability