🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

noop-tag

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noop-tag

A noop template literal tag, useful for syntax highlighting hints.

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
0
Created
Source

Noop Tag

A noop template literal tag, useful for syntax highlighting hints.

This package is basically a clone of fake-tag, but about 2~4x faster, it is still 5~10x slower than untagged template literals though, so you might want to use comment tags instead.

Install

npm install noop-tag

Usage

import css from 'noop-tag';
import javascript from 'noop-tag';
import html from 'noop-tag';

// Some example usages

const x = css`
  .foo {
    color: red;
  }
`;

const y = javascript`
  function () {
    return 123;
  }
`;

const z = html`
  <div>
    <b>Bold</b>
  </div>
`;

License

MIT © Fabio Spampinato

Keywords

template

FAQs

Package last updated on 17 Jan 2025

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