tmpljs

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tmpljs

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • lewisdiamond