Skip to main content

A library for checking and updating copyright/license headers in a project.

This package works with Deno
This package works with Deno
JSR Score
82%
Published
8 months ago (1.2.2)
Package root>checker.ts
// Copyright 2023 Chris Knight. All rights reserved. MIT license. import { checkCopyrightHeaders, Options } from "./mod.ts"; if (Deno.args.length !== 1) { console.error("No configuration file specified"); console.log("Usage: deno run --allow-read=. checker.ts config.json"); Deno.exit(1); } const config = Deno.readTextFileSync(Deno.args[0]); const options = JSON.parse(config) as Options; const success = await checkCopyrightHeaders(options); if (!success) { Deno.exit(1); }