Socket
Socket
Sign inDemoInstall

doctoc

Package Overview
Dependencies
6
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

.pre-commit-hooks.yaml

2

lib/transform.js

@@ -137,3 +137,3 @@ 'use strict';

// 4 spaces required for proper indention on Bitbucket
// 4 spaces required for proper indention on Bitbucket and GitLab
var indentation = (mode === 'bitbucket.org' || mode === 'gitlab.com') ? ' ' : ' ';

@@ -140,0 +140,0 @@

@@ -5,3 +5,3 @@ {

"description": "Generates TOC for markdown files of local git repo.",
"version": "1.3.0",
"version": "1.3.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

# DocToc [![build status](https://secure.travis-ci.org/thlorenz/doctoc.svg)](http://travis-ci.org/thlorenz/doctoc)
[![NPM](https://nodei.co/npm/doctoc.png?downloads=true&stars=true)](https://nodei.co/npm/doctoc/)
<a href="https://www.patreon.com/bePatron?u=8663953"><img alt="become a patron" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" height="35px"></a>

@@ -24,2 +24,3 @@ Generates table of contents for markdown files inside local git repository. Links are compatible with anchors generated

- [Printing to stdout](#printing-to-stdout)
- [Usage as a `git` hook](#usage-as-a-git-hook)

@@ -142,1 +143,17 @@ <!-- END doctoc generated TOC please keep comment here to allow auto update -->

[ack]: http://beyondgrep.com/
### Usage as a `git` hook
doctoc can be used as a [pre-commit](http://pre-commit.com) hook by using the
following configuration:
```yaml
repos:
- repo: https://github.com/thlorenz/doctoc
sha: ... # substitute a tagged version
hooks:
- id: doctoc
```
This will run `doctoc` against markdown files when committing to ensure the
TOC stays up-to-date.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc