0.3.0 • Published 3 years ago
components-to-markdown v0.3.0
Read The Docs | Explore the Demo
Usage
You can use directly as command line tool or as a library.
CLI Usage
You can use it directly from NPX:
npx components-to-markdown --helpUse @latest after the script to enforce the latest stable release, example:
npx components-to-markdown@latest --versionExample:
npx components-to-markdown@latest -w -o ./output-path ./components-pathSee API documentation for more details.
Library Usage
You can install it as a NPM package:
# with NPM:
npm install components-to-markdown --save-dev
# with Yarn:
yarn add components-to-markdown --devAnd import it:
// comp2mark.js
import { componentsToMarkdown } from 'components-to-markdown';
componentsToMarkdown({
sources: ['./components-path'],
output: './output-path',
});Then just run your script:
node comp2mark.jsSee API documentation for more details.