teselecta
JSON.stringify with colors
Last updated 5 years ago by asommer .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install teselecta 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.2                                ...           latest (5 years ago)
  • 0.3.0-rc1                                ...           rc (5 years ago)

10 Versions

  • 0.3.0-rc1                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.5-beta                                ...           5 years ago
  • 0.0.4-beta                                ...           5 years ago
  • 0.0.3-beta                                ...           5 years ago
  • 0.0.2-beta                                ...           5 years ago
  • 0.0.1-beta                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2016 © taobao.org |