stringify-tag

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i stringify-tag

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • garbles