update-code-snippets

1.0.2 • Public • Published

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"
  }
}

Readme

Keywords

Package Sidebar

Install

npm i update-code-snippets

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • profiprog