New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9K
decreased by-6.32%
Maintainers
0
Weekly downloads
 
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc