🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

json-typescript-docs

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-typescript-docs

Create JSON file from TypeScript code.

latest
Source
npmnpm
Version
0.6.0
Version published
Maintainers
1
Created
Source

json-typescript-docs

Takes a set of TypeScript projects and creates a JSON file designed to be the source of an API docs site. The output file is in JSON API format.

The exact format is described by a TypeScript interface.

TypeDoc is used under the hood. It's a better tool if you want a complete, out-of-the-box API docs solution.

Installation

npm install -g json-typescript-docs

Step 1: Generate a config file

See config schema.

{
  "manifest" : {
    "title": "My docs site",
    "intro": "Everything is awesome"
  },
  "projects": [
    {
      "src": "path/to/some/project/tsconfig.json"
    }
  ],
  "output": "out.json"
}

Note that the src can either be the path to the tsconfig.json or the root path of the TypeScript sources (not necessarily the project root folder).

Step 2: Run transform

jtd my-config.json

FAQs

Package last updated on 09 Nov 2017

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