xfind

Simple and fast glob alternative in Node.js

Usage no npm install needed!

<script type="module">
  import xfind from 'https://cdn.skypack.dev/xfind';
</script>

README

xfind

Simple and fast glob alternative in Node.js

xfind Build Status

Installation

$ npm install xfind

Example

const glob = require('xfind');

;(async () => {
  // touch /tmp/{a,b,c}.js /tmp/{d,e,f}.txt /tmp/g.json
  const files = await glob('/tmp/(!node_modules/)*.js(on)?');
  console.log(files);
  /* outputs: [
  '/tmp/a.js',
  '/tmp/b.js',
  '/tmp/c.js',
  '/tmp/g.json' ] */
})();

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

MIT

This work is licensed under the MIT license.