Skip to main content

Built and signed on GitHub Actions

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with 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
GitHub Actions
View transparency log

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";