New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@comodinx/api-doc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comodinx/api-doc

@comodinx/api-doc is a Node.js API Doc generator.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

API Doc generator

@comodinx/api-doc is a Node.js API Doc generator.

This module will be in charge of assembling the README corresponding to the specified documentation, in APIDocJs format, on your controllers/routes/endpoints.

Index

Download & Install

NPM

    npm install @comodinx/api-doc

Source code

$ git clone https://gitlab.com/comodinx/api-doc.git
$ cd api-doc
$ npm install

How is it used?

Configure

In your package.json, set next script

{
  ...
  "scripts": {
    "doc": "comodinx-api-doc",
    ...
  }
  ...
}

Options

ArgumentAliasValueDefault valueDescription
markdownmfile pathdoc.mdDefault markdown file path.
groupgpath''Group application name. (Gitlab/Github group/user name)
dirnamedpathcurrent cwd directoryApplication dirname.
namenpathBase name for current pathApplication name.
helphbooleanfalseOutput usage information.

Examples

Custom markdown

Use a custom README markdown.

Custom markdown :: Case 1:

Directly on package.json script.

{
  ...
  "scripts": {
    "doc": "comodinx-api-doc -m ./README.template.md",
    ...
  }
  ...
}
Custom markdown :: Case 2:

By command line.

$ npm run doc -- -m ./README.template.md

Next?

Enjoy the magic and I owe you the documentation

FAQs

Package last updated on 05 Aug 2021

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