New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tocify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tocify

Build table of contents from markdown directory structure

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

tocify

Build a TOC for markdown files, meant to work with github pages (built with jekyll).

Install

npm install --save-dev tocify

Usage

In package.json:

{
  "scripts": {
    "toc": "tocify docs > README.md"
  }
}

Then README.md would be the index page with navigation links (toc) to pages built from markdown files in the directory docs.

Options

  Usage: tocify [options]

  Options:

    -V, --version                   output the version number
    -d, --toc-dir                   directory where the toc file is meant to host
    -e, --ext <extname>             extname of markdown files (default: .md)
    -m, --max-level <level>         max level of header should be rendered (default: 2)
    -s, --word-splitter <splitter>  word splitters in path (default: _)
    -h, --help                      output usage information

FAQs

Package last updated on 18 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts