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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    3
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i tmpljs

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • lewisdiamond