0.1.0 • Published 7 years ago

vanrose v0.1.0

Weekly downloads
6
License
-
Repository
github
Last release
7 years ago

Vanrose

Van Helsing used to put Wild Roses on coffins to immobilize vampires. Now, the times have changed. Put Vanrose on hunted docs objects, to empower them.

Supplementary tool for Vandoc.

  • Accepts Vandoc result object
  • Provides handy methods to work with object

So far it is only initial draft.

Methods

const v = vanrose(vandocData, { cwd: '/source' })
  • v.filterLanguage('languageName') — returns entries only for specified language.
  • v.toc() — returns Object with Table of Content based on inner values with appropriate links for each entry, taking into account cwd.
  • v.href(':module/path') — creates proper href from Namepath which can be used for anchors.