New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tinytag

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinytag

A set of useful template literal tag functions

latest
Source
npmnpm
Version
1.8.0
Version published
Maintainers
1
Created
Source

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

Keywords

template literal tag

FAQs

Package last updated on 25 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts