|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
932 bytes
|
| Line | |
|---|
| 1 | # tinyglobby
|
|---|
| 2 |
|
|---|
| 3 | [](https://npmjs.com/package/tinyglobby)
|
|---|
| 4 | [](https://npmjs.com/package/tinyglobby)
|
|---|
| 5 |
|
|---|
| 6 | A fast and minimal alternative to globby and fast-glob, meant to behave the same way.
|
|---|
| 7 |
|
|---|
| 8 | Both globby and fast-glob present some behavior no other globbing lib has,
|
|---|
| 9 | which makes it hard to manually replace with something smaller and better.
|
|---|
| 10 |
|
|---|
| 11 | This library uses only two subdependencies, compared to `globby`'s [23](https://npmgraph.js.org/?q=globby@16.2.0)
|
|---|
| 12 | and `fast-glob`'s [17](https://npmgraph.js.org/?q=fast-glob@3.3.3).
|
|---|
| 13 |
|
|---|
| 14 | ## Usage
|
|---|
| 15 |
|
|---|
| 16 | ```js
|
|---|
| 17 | import { glob, globSync } from 'tinyglobby';
|
|---|
| 18 |
|
|---|
| 19 | await glob(['files/*.ts', '!**/*.d.ts'], { cwd: 'src' });
|
|---|
| 20 | globSync('src/**/*.ts', { ignore: '**/*.d.ts' });
|
|---|
| 21 | ```
|
|---|
| 22 |
|
|---|
| 23 | ## Documentation
|
|---|
| 24 |
|
|---|
| 25 | Visit https://superchupu.dev/tinyglobby to read the full documentation.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.