1.0.2 • Published 6 years ago

update-code-snippets v1.0.2

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

Simple tool for updating code snippets in RREADME.md or in other .md files directly from project codes.

Currently supports just typescript. Other languages will be added as needed.

Install

$ npm install -D update-code-snippets

Usage

Tool can be used together with husky to automatically update code snippets in README.md before every commit.

In package.json set up:

{ 
  "scripts": {
    "precommit": "update-code-snippets"
  },
  "devDependencies": {
    "husky": "^0.14.3",
    "update-code-snippets": "^1.0.0"
  }
}
1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago