
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
easy-react-markdown-docs
Advanced tools
Easily generate documentation in markdown for your react components
Easiest way to generate simple react markdown documentation for you components. Built on top of react-docgen.
npm install --save easy-react-markdown-docs
Run in terminal:
erd --path <react_components_directory_path> --docs <docs-directory-path>
erd
stands for "easy react docs".--path
defaults to ./src/components
--docs
defaults to ./docs
.Make sure that both your component and docs directories are valid and exist before running the script.
After running the script a file called components.md
will be placed in your docs (specified or default) directory.
//It will look for .js and .jsx files.
//Supports component nesting within the specified components directory.
//Any files that contain test.js, spec.js, test.jsx, and spec.jsx in the name will be ignored.
./<component_directory>
./Button
./*{.js|.jsx}
You can nest components under folders for better organization in the component directory.
src/
componets/
/*Single Component Example*/
Button/
index.js
index.test.js
style.scss
/*Nested Components Example*/
Notifications/
Alert/
index.js
index.test.js
style.scss
DismissIcon/
index.js
index.test.js
style.scss
FAQs
Easily generate documentation in markdown for your react components
The npm package easy-react-markdown-docs receives a total of 2 weekly downloads. As such, easy-react-markdown-docs popularity was classified as not popular.
We found that easy-react-markdown-docs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.