1.0.1 • Published 3 years ago

ye-ts2doc v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

ye-ts2doc

This project can help you generate api doc as markdown ,by reading the notes from ts files.

GitHub package.json version npm

Instalation

npm install ye-ts2doc -D

Usage

In just two steps, you can convert ts files into API documentation

create config

To use ye-ts2doc, you should firstly create the ts2doc.config.js under you project.

//ts2doc.config.js
const path = require("path")
module.exports = {
    input: <the file path that the ts file you want to parse>,
    output: <the output path the markdown file generated>,
    filename: <the name of the output markdown file>,
    publicOnly: <if only parse public methods or properties>,
}

start parse

Next, execute the following command

ts2doc

now , you can find markdown file in you output file!