0.0.3 • Published 8 years ago

tmpljs v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

tmpljs

Please send pull request for any handlers you'd like to add

Log

The problem:

> console.log(`Some data: ${{'a':'a'}}`)
Some data: [object Object]

The solution:

> const log = require('tmpljs/log')

> console.log(log`Data to be printed \n${{a:'b', c: {'deep':'obj'}, d: ['Array','of', {'obj':'ects'}]}}`)
Data to be printed
{
  "a": "b",
  "c": {
    "deep": "obj"
  },
  "d": [
    "Array",
    "of",
    {
      "obj": "ects"
    }
  ]
}

Install via npm

npm install tmpljs

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago