UNPKG

@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) 317 B
import { handleError as e } from "./handle-error.mjs"; 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 };