autotoc
v0.2.0
Published
Automatic table of contents generator for websites
Downloads
5
Readme
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