A polyfill package to replicate the functionality of the experimental
fs.glob
Warning
This package is not yet reliable enough to use, not least because the node fs.glob
implementation seems to have some issues that need to be reported/fixed.
- fsPromises.glob
- fs.glob
- fs.globSync
Install package:
npm install glob-native
import { fspGlob as glob } from 'glob-native'
for await (const entry of glob('**/*.js')) {
console.log(entry)
}
- Clone this repository
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
Made with ❤️
Published under MIT License.