🚀 Socket Launch Week 🚀 Day 4: Introducing Historical Analytics.Learn More
Socket
Sign inDemoInstall
Socket

ts-quick-docs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-quick-docs

quick TypeScript documentation extractor

0.2.0
npm
Version published
Weekly downloads
3
-84.21%
Maintainers
1
Weekly downloads
 
Created
Source

ts-quick-docs

quick TypeScript documentation extractor

This little tool parses a TypeScript project and spits out a big list of documentation objects for each interface and const discovered. That data file can be used to generate human-friendly documentation in any desired format.

Installation

  • Install Node + npm
  • Install typings
  • npm install && typings install

Usage

CLI

  • ts-quick-docs [path/to/file.ts]... > interfaces.json
  • open interfaces.json

Node API

const ts = require("typescript");
const program = ts.createProject(files, options);

const tsdoc = require("ts-quick-docs");
const documentation = tsdoc(program, { /* options */ });
fs.writeFileSync("interfaces.json", JSON.stringify(documentation, null, 4));

Options

ignoreDefinitions: boolean

Whether to exclude .d.ts files from the generated documentation blob. Useful to ignore imported environment libraries, like node.d.ts.

FAQs

Package last updated on 18 Apr 2016

Did you know?

Socket

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.

Install

Related posts