🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

gapidoc

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gapidoc

RESTful web API Documentation Generator by cobaimelan, updated by techgaun

0.1.1
0.1.1
latest
Source
npm
Version published
Weekly downloads
23
-37.84%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-apidoc Build Status

Generates a RESTful web API Documentation. Documentation at apidocjs.com

Uses the apidoc library.

Is a fork of original gulp-apidoc because this was very urgent

How It Works

/path/api/stuff.js:

/**
 * @api {get} /user/:id Request User information
 * @apiName GetUser
 * @apiGroup User
 *
 * @apiParam {Number} id Users unique ID.
 *
 * @apiSuccess {String} firstname Firstname of the User.
 * @apiSuccess {String} lastname  Lastname of the User.
 */

Install

Install with npm

npm install --save-dev gapidoc

Usage

var gulp = require('gulp'),
    apidoc = require('gapidoc');

gulp.task('apidoc', function(){
          apidoc.exec({
            src: "example/",
            dest: "build/"
          });
});

With options:

var gulp = require('gulp'),
    apidoc = require('gapidoc');

gulp.task('apidoc',function(){
              apidoc.exec({
	              src: "example/",
                  dest: "build/",
                  debug: true,
                  includeFilters: [ ".*\\.js$" ]
              });
});

Other options checkout.

API

apidoc(options)

options.src

Type: String

options.dest

Type: string Default: doc/

options.debug

Type: Boolean Default: false

options.log

Type: Boolean Default: true

options.includeFilters

Type: Array Default: []

Keywords

gulpplugin

FAQs

Package last updated on 12 Mar 2015

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