update-code-snippets
v1.0.2
Published
tool updating code snippeds in README.md or other .md files
Downloads
14
Readme
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-snippetsUsage
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"
}
}