@estarlincito/utils
Version:
A collection of utility functions designed to simplify and speed up development tasks in JavaScript and TypeScript projects.
11 lines (10 loc) • 322 B
JavaScript
import { throwAppError as e } from "./error-handling.js";
const c = (t) => {
const r = (/* @__PURE__ */ new Date()).getFullYear();
return t > r && e(
`buildYear (${t}) cannot be greater than the current year (${r}).`
), t === r ? `Copyright © ${t}` : `Copyright © ${t}–${r}`;
};
export {
c as copyright
};