copyright-updater
Version:
A lightweight CLI tool that automatically updates copyright years in your project files — with support for custom formats and ranges.
17 lines (12 loc) • 419 B
JavaScript
const { Updater } = require("../lib/updater.cjs");
/**
* @typedef {'minimal' | 'ranged' | 'copyright-ranged' | "modified" | 'full'} FormatType
* @param {FormatType} format
* @param {number} year
* @param {number} [endYear] optional
*/
function cpUpdate(format, year, endYear) {
const updater = new Updater(format, year,endYear);
return updater.cpUpdater();
}
module.exports = cpUpdate;