New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apidocs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apidocs

this zero-dependency package will auto-generate documentation for your npm-package with zero-config

  • 2017.3.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
164
decreased by-67.78%
Maintainers
1
Weekly downloads
 
Created
Source

apidoc-lite

this zero-dependency package will auto-generate documentation for your npm-package with zero-config

travis-ci.org build-status istanbul-coverage

NPM

package-listing

documentation

apidoc

apidoc

todo
  • none
change since dfed6414
  • npm publish 2017.3.9
  • add ability to create markdown documentation
  • auto-document dir ./lib/
  • increase auto-coverage of examples
  • none
this package requires
  • darwin or linux os

build status travis-ci.org build-status

build commit status

git-branch :masterbetaalpha
test-report :test-reporttest-reporttest-report
coverage :istanbul-coverageistanbul-coverageistanbul-coverage
build-artifacts :build-artifactsbuild-artifactsbuild-artifacts
master branch
  • stable branch
  • HEAD should be tagged, npm-published package
beta branch
  • semi-stable branch
  • HEAD should be latest, npm-published package
alpha branch
  • unstable branch
  • HEAD is arbitrary
  • commit history may be rewritten

quickstart shell example

to run this example, follow the instruction in the script below
# example.sh

# this shell script will auto-generate documentation for the mysql npm-package with zero-config

# instruction
    # 1. copy and paste this entire shell script into a console and press enter
    # 2. open /tmp/apidoc.html to view the auto-generated documentation

shExampleSh() {(set -e
    # npm install apidoc-lite
    npm install apidoc-lite
    # npm install mysql
    npm install mysql
    # auto-generate documentation for the mysql npm-package with zero-config
    node_modules/.bin/apidoc-lite mysql > /tmp/apidoc.html
)}
shExampleSh
output from browser

screen-capture

output from shell

screen-capture

package.json

{
    "author": "kai zhu <kaizhu256@gmail.com>",
    "bin": {
        "apidoc-lite": "lib.apidoc.js"
    },
    "description": "this zero-dependency package will auto-generate documentation for your npm-package with zero-config",
    "devDependencies": {
        "electron-lite": "kaizhu256/node-electron-lite#alpha",
        "utility2": "kaizhu256/node-utility2#alpha"
    },
    "engines": {
        "node": ">=4.0"
    },
    "homepage": "https://github.com/kaizhu256/node-apidoc-lite",
    "keywords": [
        "api-doc",
        "apidoc",
        "doc",
        "documentation",
        "doxygen",
        "javadoc"
    ],
    "license": "MIT",
    "main": "lib.apidoc.js",
    "name": "apidoc-lite",
    "nameAlias": "apidoc",
    "nameOriginal": "apidoc-lite",
    "os": [
        "darwin",
        "linux"
    ],
    "readmeParse": "1",
    "repository": {
        "type": "git",
        "url": "https://github.com/kaizhu256/node-apidoc-lite.git"
    },
    "scripts": {
        "build-ci": "utility2 shReadmeTest build_ci.sh",
        "env": "env",
        "heroku-postbuild": "npm install 'kaizhu256/node-utility2#alpha' && utility2 shDeployHeroku",
        "postinstall": "if [ -f lib.apidoc.npm_scripts.sh ]; then ./lib.apidoc.npm_scripts.sh postinstall; fi",
        "publish-alias": "VERSION=$(npm info $npm_package_name version); for ALIAS in api_doc apidocs api-doctor doctor-api npm-doc npmdoc; do utility2 shNpmPublishAs . $ALIAS $VERSION; utility2 shNpmTestPublished $ALIAS || exit $?; done",
        "start": "export PORT=${PORT:-8080} && export npm_config_mode_auto_restart=1 && utility2 start",
        "test": "export PORT=$(utility2 shServerPortRandom) && utility2 test test.js"
    },
    "version": "2017.3.9"
}

changelog of last 50 commits

screen-capture

internal build-script

  • build_ci.sh
# build_ci.sh

# this shell script will run the build for this package

shBuildCiInternalPost() {(set -e
    shReadmeBuildLinkVerify
)}

shBuildCiInternalPre() {(set -e
    shReadmeTest example.js
    shReadmeTest example.sh
    # save screen-capture
    (export MODE_BUILD=testExampleSh &&
        export url=/tmp/apidoc.html &&
        utility2 shBrowserTest &&
        cp /tmp/apidoc.html "$npm_config_dir_build/apidoc.example.html") || return $?
    shNpmTestPublished
)}

shBuildCiPost() {(set -e
    return
)}

shBuildCiPre() {(set -e
    return
)}

# init env
eval $(utility2 source) && shBuildCi

misc

Keywords

FAQs

Package last updated on 10 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc