template-inspect

1.0.2 • Public • Published

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(`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(`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

Package Sidebar

Install

npm i template-inspect

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • addaleax