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

duckdoc

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duckdoc

api document generation

latest
Source
npmnpm
Version
0.11.21
Version published
Weekly downloads
22
-68.57%
Maintainers
1
Weekly downloads
 
Created
Source

duckdoc 🦆

NPM version

duckdoc is a REST API documentation tool, consisting of duckdoc and duckdoc-jsoner.

Integrating duckdoc-jsoner within the testing process and prepares .json files of each endpoint based on tests of each endpoint. duckdoc then parses those files and renders to static document sites (i.e., .html).

motivation

REST API documentation is always a bunch of trivia. Especially when the project is under development and the API is evolving every build, the complaints of inconsistency between document and realistic from frontend / mobile teammates are endless.

duckdoc aims to solve this problem. Integrating documentation within the testing process ensures the correction of request and response of each endpoint.

demo

  • Demo
  • Tutorial

prerequisite

prepare .json with duckdoc-jsoner.

compatibility

duckdocduckdoc-jsoner
0.10.x0.7.x
0.11.x0.8.x

install

$ npm install --save-dev duckdoc

or install globally

$ npm install -g duckdoc

usage

cli

$ duckdoc -h

  Usage: duckdoc [options] <jsonDir>

  Options:

    -h, --help                       output usage information
    -o, --output [outputPath]        Output destination, default to ./doc/
    -p, --projectName [projectName]  Output destination, default to folder name


Example

$ duckdoc --projectName hello-duckdoc --output ./doc path/to/json/folder 

code

var duckdoc = require('duckdoc');
var duck = duckdoc("projectName", "path/to/json/folder", "/output/path");
duck.renderAll();

Keywords

RESTful

FAQs

Package last updated on 16 Jun 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