node-talisman
Version:
A npm package for running Thoughtwork's Talisman tool
75 lines (46 loc) • 2.53 kB
Markdown
# node-talisman · [](https://www.npmjs.com/package/node-talisman) [](http://makeapullrequest.com) [](https://github.com/pgmanutd/node-talisman/blob/master/LICENSE) [](https://circleci.com/gh/pgmanutd/node-talisman) [](https://coveralls.io/github/pgmanutd/node-talisman?branch=master) [](https://snyk.io/test/github/pgmanutd/node-talisman?targetFile=package.json)
A npm package for running Thoughtwork's [Talisman](https://github.com/thoughtworks/talisman) tool as a CLI.
## Requires
- Node 12+
## Features
- Supports [Talisman v1.37.0](https://github.com/thoughtworks/talisman/releases/tag/v1.37.0).
- Linux, MacOS and Windows supported.
## Installation
1. Add package
```sh
npm install --save-dev node-talisman
```
2. Add a script to package.json
```js
{
"scripts" : {
"node-talisman": "node-talisman",
...
}
...
}
```
3. Use it as you like :wink:
**Using above script:**
```sh
npm run node-talisman -- --githook [pre-commit|pre-push]
# finds all .js and .ts files in the current directory (recursively)
npm run node-talisman -- --pattern="./**/*.{js,ts}"
```
**Using npx:**
```sh
npx node-talisman --githook [pre-commit|pre-push]
# finds all .js and .ts files in the current directory (recursively)
npx node-talisman --pattern="./**/*.{js,ts}"
```
For more details checkout [Talisman as a CLI utility](https://github.com/thoughtworks/talisman#talisman-as-a-cli-utility).
## Contributing Guide
Anyone can help to make this project better - check out the [Contributing Guide](./.github/CONTRIBUTING.md)!
## Code of Conduct
Please adhere to [Code of Conduct](./.github/CODE_OF_CONDUCT.md).
## Issues
Please make sure to read the [Issue Reporting Guidelines](./.github/ISSUE_TEMPLATE.md) before opening an issue.
## Changelog
Detailed changes for each release are documented in the [release notes](https://github.com/pgmanutd/node-talisman/releases).
## License
Licensed under the [MIT licensed](./LICENSE).