0.0.6 • Published 6 years ago

viewscript-table-of-contents v0.0.6

Weekly downloads
2
License
GPLv3
Repository
github
Last release
6 years ago

viewscript-table-of-contents

Extracts a table-of-contents from some Viewscript.

Install

$ npm install viewscript-table-of-contents --save

Usage

const extractToc = require('viewscript-table-of-contents')

const toc = extractToc(
{
  title: 'Simple demo form!',
  widgets: []
})

Testing

$ npm test

License

GPLv3