Skip to content

webdeveric/styled-json-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

styled-json-console

Create a custom Node.js Console that automatically adds colors to JSON strings.

Install

pnpm add styled-json-console

Usage

import { createConsole } from 'styled-json-console';

const myConsole = createConsole({
  // Options go here
});

myConsole.log(
  JSON.stringify({
    message: 'Hello, World!',
    now: Date.now(),
  }),
);

Checkout this repo then run this:

pnpm install
pnpm build
node ./example/index.ts

About

Custom Node.js Console that styles your JSON output

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Sponsor this project