Socket
Socket
Sign inDemoInstall

typedoc

Package Overview
Dependencies
19
Maintainers
1
Versions
299
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    typedoc

Create api documentations for typescript projects.


Version published
Weekly downloads
1.1M
decreased by-0.21%
Maintainers
1
Install size
17.9 MB
Created
Weekly downloads
 

Package description

What is typedoc?

TypeDoc is a documentation generator for TypeScript projects. It reads your TypeScript source code and its comments and produces an HTML documentation website. It is capable of creating readable and user-friendly documentation for TypeScript projects, which can be very helpful for both maintaining internal code and for sharing code with external users.

What are typedoc's main functionalities?

Generating Documentation

This command generates documentation for the TypeScript source files located in the 'src' directory and outputs the result to the 'docs' directory.

typedoc --out docs src

Customizing the Theme

This command generates documentation with a minimal theme, which is one of the built-in themes provided by TypeDoc.

typedoc --out docs src --theme minimal

Excluding Private Members

This command generates documentation while excluding private members from the output, making the documentation cleaner if private members are not intended to be part of the public API.

typedoc --out docs src --excludePrivate

Including Declaration Files

This command includes type declaration files (d.ts files) in the documentation generation process, which can be useful for documenting the types that are part of the project's external API.

typedoc --out docs src --includeDeclarations

Other packages similar to typedoc

Readme

Source

TypeDoc

Create api documentations for typescript projects.

Installation

TypeDoc runs on Node.js and is available as an NPM package. You can install TypeDoc in your project's directory as usual:

$ npm install typedoc --save-dev

Like the TypeScript compiler, TypeDoc comes with a binary that can be called from anywhere if you install TypeDoc as a global module. The name of the executable is tsd.

$ npm install typedoc --global $ tsd

Usage

TypeDoc accepts most of the command line arguments that the TypeScript compiler accepts. One major difference is the fact that one may pass an entire directory instead of individual files to the documentation generator. So in order to create a documentation for an entire project you simply type:

$ tsd --out path\to\documentation\ path\to\typescript\project\

Keywords

FAQs

Last updated on 24 May 2014

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc