autotoc

0.2.0 • Public • Published

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

/autotoc/

    Package Sidebar

    Install

    npm i autotoc

    Weekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • hgcummings