Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/stephansama/packages. open source npm packages created by @stephansama packages.stephansama.info
alfred-workflow javascript javascript-library npm npm-package npm-package-typescript npm-packages turborepo typescript
Something went wrong. Try again.
383 B · 13 lines
TypeScript
1234567891011121314import { createDebug } from "obug";
import pkg from "../package.json";
export const moduleName = pkg.name.split("/").at(-1)!.replace(/-/g, "");
export const debug = createDebug(namespace("debug"));export const info = createDebug(namespace("info"));export const warn = createDebug(namespace("warn"));
function namespace(space: string) { return [moduleName, space].join(":");}