Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-api-docs

eush77758MIT0.3.1

Node API docs in Markdown, HTML, or JSON

node, nodejs, iojs, api, docs, help, man, readme, platform, markdown, md, html, json, stream

readme

npm

node-api-docs

Build Status Dependency Status

Node API docs in Markdown, HTML, or JSON, as a readable stream.

Example

var apidocs = require('node-api-docs');

apidocs.markdown('net')
  .pipe(process.stdout);

API

nodeApiDocs.markdown(module)

Returns readable stream of Markdown.

nodeApiDocs.html(module)

Returns readable stream of HTML.

nodeApiDocs.json(module)

Returns readable stream of JSON.

Event: error

nodeApiDocs(module).on('error', function(err))

Emitted if connection failed, or server responds with code other than 200.

CLI

nodeapi [--markdown | --html | --json] <module>

Writes docs to stdout, or pipes to pager if stdout is TTY.

nodeapi --list

Prints list of doc pages.

Install

npm install node-api-docs

License

MIT