1.0.2 • Published 6 years ago
update-code-snippets v1.0.2
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"
}
}