Skip to content

AaronY666/ye-ts2doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

transform ts to api doc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published