autotoc

v0.0.2
HTML sitemap generator

Simple web-scraping and module packaging demo. Generates a table of contents by spidering from a given URL.

Usage

As a command line tool

npm install -g autotoc
autotoc http://hgc.io

As a library

npm install autotoc --save
const autotoc = require('autotoc');
autotoc('http://hgc.io').then(autotoc.consolePrinter, err => console.log(err));

Development

git clone
cd autotoc
npm install

To regenerate the client-side UMD version:

npm install -g browserify
browserify autotoc.js -s autotoc -o browser/scripts/autotoc.js

Metadata

  • MIT
  • Whatever
  • hgcummings
  • released 3/15/2016

Downloads

Maintainers