@secretlint/config-validator
v4.2.0
Published
.secretlintrc config validation library
Downloads
13,280
Readme
@secretlint/config-validator
.secretlintrc config validation library
Install
Install with npm:
npm install @secretlint/config-validator
Usage
import { validateRawConfig } from "@secretlint/config-validator";
import fs from "fs";
const secretlintrc = require("./.secretlintrc.json");
const { ok, error } = validateRawConfig(secretlintrc);
if (!ok) {
console.error(error);
}
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm test
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT © azu