ypp

1.0.0 • Public • Published

node-ypp

YOLK's Pretty Print for Node

Abstract

Returns JSON.stringify(object, null, 2);

I use this everywhere.

Installation

npm i --save ypp

Usage

var pp = require('ypp');
var a = {a:1,b:2,c:'apple'};
console.log(pp(a));
import pp from 'ypp';
const a = {a:1, b:2, c:'three'};
console.log(pp(a));

Package Sidebar

Install

npm i ypp

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yolk