Gathering detailed insights and metrics for vite-plugin-vue-docgen
Gathering detailed insights and metrics for vite-plugin-vue-docgen
Gathering detailed insights and metrics for vite-plugin-vue-docgen
Gathering detailed insights and metrics for vite-plugin-vue-docgen
npm install vite-plugin-vue-docgen
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
8 Stars
34 Commits
3 Forks
3 Watching
1 Branches
2 Contributors
Updated on 30 Mar 2024
JavaScript (49.52%)
TypeScript (40.85%)
Vue (9.63%)
Cumulative downloads
Total Downloads
Last day
49.3%
1,133
Compared to previous day
Last week
37%
4,367
Compared to previous week
Last month
3.4%
15,826
Compared to previous month
Last year
164.4%
104,589
Compared to previous year
2
1
This is a very simple Vite plugin that wraps the Vue Docgen API for providing metadata about Vue single file components (SFC).
To use, simply import the plugin and register it after the Vue plugin in your Vite config:
1// vite.config.js 2 3import vuePlugin from '@vitejs/plugin-vue'; 4import vueDocgenPlugin from 'vite-plugin-vue-docgen'; 5 6export default { 7 plugins: [ 8 vuePlugin(), 9 vueDocgenPlugin() 10 ] 11}
The docgen metadata will then be accessible as a property on the component:
1import Button from './button.vue'; 2 3const { 4 displayName, 5 description, 6 props, 7 methods, 8 slots 9} = Button.__docgenInfo;
1const options = { 2 3 /* Regex (optional) - The file path pattern to match */ 4 include: /\.vue$/, 5 6 /* Regex (optional) - The file path pattern to exclude */ 7 exclude: /\.story\.vue$/, 8 9 /* String (optional) - The property name to inject the docgen metadata at */ 10 injectAt: '__docgenInfo' 11 12 /* Object (optional) - Specific Docgen API options */ 13 docgenOptions: { 14 jsx: true 15 } 16};
See here for a full list of docgen API options.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- 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
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
14 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
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