# plain-tag

> A noop/plain JS template literal tag

Latest version **0.1.3** (published 2020-08-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install plain-tag
pnpm add plain-tag
yarn add plain-tag
bun add plain-tag
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2020-08-06 |
| First published | 2020-07-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Andrea Giammarchi |
| Maintainers | webreflection |
| Keywords | noop, template, literal, tag |

## Links

- npm: https://www.npmjs.com/package/plain-tag
- Repository: https://github.com/WebReflection/plain-tag
- Homepage: https://github.com/WebReflection/plain-tag#readme
- Issues: https://github.com/WebReflection/plain-tag/issues
- npm.io page: https://npm.io/package/plain-tag

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2020-08-06
- 0.1.2 — 2020-07-04
- 0.1.1 — 2020-07-04
- 0.1.0 — 2020-07-03
- 0.0.0 — 2020-07-03

## README

# plain-tag

[![Build Status](https://travis-ci.com/WebReflection/plain-tag.svg?branch=master)](https://travis-ci.com/WebReflection/plain-tag) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/plain-tag/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/plain-tag?branch=master)

A fast, and essential, noop/plain JS template literal tag.

```js
import plainTag from 'plain-tag';
// const plainTag  = require('plain-tag');
// <script src="//unpkg.com/plain-tag"></script>

plainTag`one ${2} three`;
// output: "one 2 three"
```

It could be used to trigger CSS minification too, through rollup plugins or others.

```js
import css from 'plain-tag';

const style = css`
  body {
    color: green;
  }
`;
```

## Benchmark

Following the result of `node test/benchmark.js` after a local install of both `fake-tag` and `noop-tag`.

```
plain: 1.359ms
fake: 4.578ms
noop: 10.347ms
```

The gist of this module fits into 89 bytes before compression.

```js
function(b){for(var c=b[0],a=1,d=arguments.length;a<d;a++)c+=arguments[a]+b[a];return c}
```

---
_Source: https://npm.io/package/plain-tag · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
