1.0.2 • Published 7 years ago

template-inspect v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

template-inspect

NPM Version NPM Downloads Build Status Coverage Status Dependency Status

Tag for template strings using util.inspect

Install: npm install template-inspect

const i = require('template-inspect');

console.log(i `The i function looks like ${i}.`);
// prints:
// The i function looks like { [Function: templateInspect] forOptions: [Function: forOptions] }.

Supports all options for util.inspect:

const i = require('template-inspect').forOptions({ colors: true });

console.log(i `The i function looks like ${i}.`);
// prints the same as above (but with colors)!:
// The i function looks like { [Function: templateInspect] forOptions: [Function: forOptions] }.

License

MIT