‚̧Nutella Pancake Machine
    Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    noop-tag
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2¬†‚Äʬ†Public¬†‚Äʬ†Published

    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.

    This overhead could be removed entirely via a babel transform that removes these noop tags from template literals, do you want to code it?

    Install

    npm install --save noop-tag

    Usage

    import css from 'noop-tag';
    import javascript from 'noop-tag';
    import html from 'noop-tag';
     
    const x = css`
      .foo {
        color: red;
      }
    `;
     
    const y = javascript`
      function () {
        return 123;
      }
    `;
     
    const z = html`
      <div>
        <b>Bold</b>
      </div>
    `;

    License

    MIT © Fabio Spampinato

    Install

    npm i noop-tag

    DownloadsWeekly Downloads

    76

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.36 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar