13.0.6 • Published 5 months ago
@bundled-es-modules/glob
Licence
MIT
Version
13.0.6
Deps
7
Size
480 kB
Vulns
0
Weekly
0
glob
This is a mirror of glob, bundled and exposed as dual publish CJS & ES module.
In addition, it exposes a browser entrypoint that works in browsers without any additional build tool transformations.
This comes with a patch of path-scurry, where we just assume the fs option is always passed to glob.
Therefore, with this mirror of glob, you MUST always pass the fs property in the options parameter when inside browser environment
In Node environment, we just use a re-export of
globorigin, as it now exposes both ESM + CJS
Install
npm install @bundled-es-modules/glob
Use
<script type="module">
import glob from '@bundled-es-modules/glob';
</script>