Skip to content

garbles/stringify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

stringify-tag

Template literal tag that properly stringifies all inputs.

Use

import stringify from 'stringify-tag';

const obj = {
  a: 1,
  b: 'hello'
};

stringify`My object: ${obj}`;
// >> "My object: {\"a\":1,\"b\":\"hello\"}"

Install

yarn add stringify-tag

About

Template literal tag that properly stringifies all inputs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published