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>updater.ts
// Copyright 2023 Chris Knight. All rights reserved. MIT license. import { Options, updateCopyrightHeaders } from "./mod.ts"; if (Deno.args.length !== 1) { console.error("No configuration file specified"); console.log( "Usage: deno run --allow-read=. --allow-write=. updater.ts config.json", ); Deno.exit(1); } const config = Deno.readTextFileSync(Deno.args[0]); const options = JSON.parse(config) as Options; await updateCopyrightHeaders(options);