Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tinytag

brianjvarley20MIT1.8.0

A set of useful template literal tag functions

template literal tag

readme

tinytag

NPM

A set of useful template literal tag functions.

Installation

npm i --save tinytag

Usage


// Node.js
const tinyTag = require('tinytag');

// Browser
import tinyTag from 'tinytag';
// or 
import { methodName } from 'tinytag'

Methods

- highLightTag

Wraps each template variable in string literal with <span class=highlight> <span> to highlight variables in string.

Example:

highLightTag`Current account balance ${100000} no ${'overdraft'}` // => 'Current account balance <span class=highlight> 1000000 <span> no <span class=highlight> overdraft <span>'

Changelog

Changelog

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

v1.8.0

  • update readme method section 5483220

v1.7.0

25 October 2020

  • add highlightTag function 6fdeeaa

v1.6.0

25 October 2020

v1.5.0

25 October 2020

v1.4.0

25 October 2020

  • add changelog link to readme 2d9c517
  • add changelog link to readme 0cd210c

v1.3.0

25 October 2020

  • update version and auto changelog scripts a91c488

v1.2.0

25 October 2020

  • update version and auto changelog scripts eed28a4
  • update version and auto changelog scripts 35dfdfc
  • update version and auto changelog scripts 0518610

v1.1.0

24 October 2020