Gathering detailed insights and metrics for @0kzh/babel-plugin-transform-vite-meta-glob
Gathering detailed insights and metrics for @0kzh/babel-plugin-transform-vite-meta-glob
npm install @0kzh/babel-plugin-transform-vite-meta-glob
Typescript
Module System
Node Version
NPM Version
64.3
Supply Chain
91.8
Quality
74
Maintenance
100
Vulnerability
99.6
License
babel-plugin-transform-vite-meta-glob@1.1.2
Published on 16 Jan 2024
babel-preset-vite@1.1.3
Published on 16 Jan 2024
babel-plugin-transform-vite-meta-glob@1.1.1
Published on 26 Dec 2023
babel-preset-vite@1.1.2
Published on 26 Dec 2023
babel-plugin-transform-vite-meta-glob@1.1.0
Published on 18 Dec 2023
babel-preset-vite@1.1.1
Published on 18 Dec 2023
TypeScript (98.73%)
JavaScript (1.27%)
Total Downloads
454
Last Day
3
Last Week
4
Last Month
14
Last Year
158
61 Stars
57 Commits
13 Forks
2 Watching
5 Branches
5 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.0-semantically-released
Package Id
@0kzh/babel-plugin-transform-vite-meta-glob@0.0.0-semantically-released
Unpacked Size
13.47 kB
Size
4.02 kB
File Count
11
NPM Version
7.10.0
Node Version
16.0.0
Publised On
17 Jan 2023
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
33.3%
4
Compared to previous week
Last month
27.3%
14
Compared to previous month
Last year
3.3%
158
Compared to previous year
Please note: this plugin is intended to provide an approximation of some of Vite specific transformations when running the code in non-Vite environment, for example, running tests with a NodeJS based test runner.
The functionality within these transformations should not be relied upon in production.
In
1const modules = import.meta.glob('./path/to/files/**/*') 2 3const eagerModules = import.meta.globEager('./path/to/files/**/*')
Out
For the purposes of this example, assume there are 3 files,
files1.js
,files2.js
andfile3.js
at the path of./path/to/files/
relative the files being transformed.
1const modules = { 2 './path/to/files/file1.js': () => import('./path/to/files/file1.js'), 3 './path/to/files/file2.js': () => import(('./path/to/files/file2.js'), 4 './path/to/files/file3.js': () => import(('./path/to/files/file3.js') 5} 6 7const eagerModules = { 8 './path/to/files/file1.js': require('./path/to/files/file1.js'), 9 './path/to/files/file2.js': require('./path/to/files/file2.js'), 10 './path/to/files/file3.js': require('./path/to/files/file3.js') 11}
1npm install --save-dev babel-plugin-transform-vite-meta-glob
1{ 2 "plugins": ["babel-plugin-transform-vite-meta-glob"] 3}
1babel --plugins babel-plugin-transform-vite-meta-glob script.js
1require('@babel/core').transformSync('code', { 2 plugins: ['babel-plugin-transform-vite-meta-glob'] 3})
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 8/12 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More