teselecta

0.2.2 • Public • Published

teselecta

JSON.stringify with colors

Screenshot

Usage:

var teselecta=require('teselecta'), text;
 
text=teselecta({
  wibbly:'wobbly',
  stuff:['timey', 'wimey'],
  releaseYear:1963,
  tardis:{
    type:'Space-time vessel',
    chameleonCircuit:{broken:true, works:false},
  }
});
 
console.log(text);

Change the default colors:

teselecta.QUOTATION='grey';
teselecta.KEY='blue';
teselecta.STRING='cyan';
teselecta.NUMBER='magenta';
teselecta.TRUE='green';
teselecta.FALSE='red';

Tests

Run tests with npm test or generate coverage reports with npm run test-cov.

License

MIT

Package Sidebar

Install

npm i teselecta

Weekly Downloads

11

Version

0.2.2

License

MIT

Last publish

Collaborators

  • asommer