# @ungap/template-tag-arguments

> Normalizes tagged arguments granting a unique template

Latest version **0.5.0** (published 2020-06-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ungap/template-tag-arguments
pnpm add @ungap/template-tag-arguments
yarn add @ungap/template-tag-arguments
bun add @ungap/template-tag-arguments
```

## 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.5.0 |
| Published | 2020-06-27 |
| First published | 2019-01-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrea Giammarchi |
| Maintainers | webreflection |
| Keywords | template, literal, unique, arguments |

## Links

- npm: https://www.npmjs.com/package/@ungap/template-tag-arguments
- npm.io page: https://npm.io/package/@ungap/template-tag-arguments

## Dependencies (1)

- [@ungap/template-literal](https://npm.io/package/@ungap/template-literal.md) ^0.6.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.5.0 (latest) — 2020-06-27
- 0.4.0 — 2020-05-02
- 0.3.1 — 2019-08-23
- 0.3.0 — 2019-06-13
- 0.2.0 — 2019-06-13
- 0.1.1 — 2019-01-11

## README

# Template Tag Arguments

[![Build Status](https://travis-ci.com/ungap/template-tag-arguments.svg?branch=master)](https://travis-ci.com/ungap/template-tag-arguments) [![Coverage Status](https://coveralls.io/repos/github/ungap/template-tag-arguments/badge.svg?branch=master)](https://coveralls.io/github/ungap/template-tag-arguments?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/ungap/template-tag-arguments.svg)](https://greenkeeper.io/) ![WebReflection status](https://offline.report/status/webreflection.svg)

Normalizes tagged arguments granting a unique template through the [@ungap/template-literal](https://github.com/ungap/template-literal) module.

```js
import tta from '@ungap/template-tag-arguments';

const tag = (...args) => {
  const [template, ...interpolations] = tta(...args);
  // template is now unique in TypeScript, old Firefox, and others
  return template;
};

tag(1) === tag(2); // true as specified by ECMAScript standard

function test(value) {
  return tag`a${value}b`;
}
```

#### How to include

  * CDN as global utility via https://unpkg.com/@ungap/template-tag-arguments
  * CDN as ESM module via `import tta from 'https://unpkg.com/@ungap/template-tag-arguments?module'`
  * ESM via `import tta from '@ungap/template-tag-arguments'`
  * CJS via `const tta = require('@ungap/template-tag-arguments')`

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