@secretlint/config-validator

.secretlintrc config validation library

Usage no npm install needed!

<script type="module">
  import secretlintConfigValidator from 'https://cdn.skypack.dev/@secretlint/config-validator';
</script>

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.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu