@m4rc3l05/pretty-logs@0.2.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
M4RC3L05/pretty-logsThis package works with Node.js, Deno, Bun
JSR Score
64%
Published
3 weeks ago (0.2.2)
Pretty logs
Pretty format json logs
Usage
JSR does not currently suport export bin so:
Create a script example: ./pretty:
#!/usr/bin/env <bun/deno/node> import { pretty, resolveRuntime, runtime } from "@m4rc3l05/pretty-logs"; if (import.meta.main) { await pretty(resolveRuntime(runtime())); }
Make it executable and pipe to that script:
foo | ./pretty
Deno
In deno you can just deno run the package and pipe to it:
foo | deno run --no-lock jsr:@m4rc3l05/pretty-logs/bin/deno
Built and signed on
View transparency logGitHub Actions
Add Package
deno add jsr:@m4rc3l05/pretty-logs
Import symbol
import * as mod from "@m4rc3l05/pretty-logs";
---- OR ----
Import directly with a jsr specifier
import * as mod from "jsr:@m4rc3l05/pretty-logs";
Add Package
npx jsr add @m4rc3l05/pretty-logs
Import symbol
import * as mod from "@m4rc3l05/pretty-logs";
Add Package
yarn dlx jsr add @m4rc3l05/pretty-logs
Import symbol
import * as mod from "@m4rc3l05/pretty-logs";
Add Package
pnpm dlx jsr add @m4rc3l05/pretty-logs
Import symbol
import * as mod from "@m4rc3l05/pretty-logs";
Add Package
bunx jsr add @m4rc3l05/pretty-logs
Import symbol
import * as mod from "@m4rc3l05/pretty-logs";