Skip to content

addaleax/template-inspect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tag for template strings using util.inspect

Resources

License

Stars

Watchers

Forks

Packages