Gathering detailed insights and metrics for babel-plugin-react-docgen-typescript
Gathering detailed insights and metrics for babel-plugin-react-docgen-typescript
Gathering detailed insights and metrics for babel-plugin-react-docgen-typescript
Gathering detailed insights and metrics for babel-plugin-react-docgen-typescript
Babel Plugin to generate docgen data from React components written in TypeScript.
npm install babel-plugin-react-docgen-typescript
Typescript
Module System
Node Version
NPM Version
TypeScript (89.73%)
JavaScript (10.27%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
12 Stars
39 Commits
4 Forks
1 Watchers
12 Branches
4 Contributors
Updated on Mar 30, 2023
Latest Version
1.5.1
Package Id
babel-plugin-react-docgen-typescript@1.5.1
Unpacked Size
10.21 kB
Size
2.99 kB
File Count
4
NPM Version
6.7.0
Node Version
11.12.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
24
babel-plugin-react-docgen-typescript is a Babel Plugin to generate docgen data from React components written in TypeScript.
$ npm install --save-dev babel-plugin-react-docgen-typescript
Via .bablerc
1{ 2 "plugins": [ 3 [ 4 "babel-plugin-react-docgen-typescript", 5 { 6 "docgenCollectionName": "STORYBOOK_REACT_CLASSES", 7 "include": "components.*\\.tsx$", 8 "exclude": "stories\\.tsx$" 9 } 10 ] 11 ] 12}
This plugin calls out to a parser from react-docgen-typescript for all files ending in .tsx$
. This is very inefficient. This plugin is a bit of a hack.
To speed things up a bit, it is recommended to include the plugin settings include
and exclude
to restrict parsing to your component directories.
Setting | Required | Type | Description | Example |
---|---|---|---|---|
skipPropsWithName | false | string[] or string | This option is passed along to react-docgen-typescript 's parser. It globally ignores props with the specified name(s). | "classname" or ["classname", "color"] |
skipPropsWithoutDoc | false | boolean | This option is passed along to react-docgen-typescript 's parser. It globally ignores props without documentation. | true |
shouldExtractLiteralValuesFromEnum | false | boolean | This option is passed along to react-docgen-typescript 's parser. It convert string enums and unions to docgen enum format. Possible values are still accessible. | true |
shouldExtractValuesFromUnion | false | boolean | This option is passed along to react-docgen-typescript 's parser. It convert multiple types to docgen enum format. Possible values are still accessible. | true |
docgenCollectionName | false | string | Enables collecting docgen data into a global object. This is used to integrate with tools like Storybook. | "STORYBOOK_REACT_CLASSES" |
include | false | string | A regular expression of files to pass along to react-docgen-typescript 's parser. Defaults to \.tsx$ . | "components.*\\.tsx$" |
exclude | false | string | A regular expression to filter the results from include. For instance, you can add a regular expression to prevent files ending in .stories.tsx from being processed in your component directories. | "stories\\.tsx$" |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/21 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
61 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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