https://github.com/lsongdev/xfind
:mag: Simple and fast glob alternative in Node.js, just ~65lines!
https://github.com/lsongdev/xfind
filesystem finder glob
Last synced: 7 months ago
JSON representation
:mag: Simple and fast glob alternative in Node.js, just ~65lines!
- Host: GitHub
- URL: https://github.com/lsongdev/xfind
- Owner: lsongdev
- License: mit
- Created: 2019-01-09T06:44:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T03:25:06.000Z (over 4 years ago)
- Last Synced: 2025-09-06T07:52:34.232Z (7 months ago)
- Topics: filesystem, finder, glob
- Language: JavaScript
- Homepage: https://npmjs.org/xfind
- Size: 5.86 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## xfind
> Simple and fast glob alternative in Node.js
[](https://npmjs.org/xfind)
[](https://travis-ci.org/song940/xfind)
### Installation
```bash
$ npm install xfind
```
### Example
```js
const xfind = require('xfind');
;(async () => {
// touch /tmp/{a,b,c}.js /tmp/{d,e,f}.txt /tmp/g.json
const files = await xfind.collect('/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](./LICENSE).
---