# tager

> A bunch of helpful tags for template strings.

Latest version **0.0.3** (published 2018-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install tager
pnpm add tager
yarn add tager
bun add tager
```

## 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.0.3 |
| Published | 2018-11-29 |
| First published | 2018-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 261.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Remi Liu |
| Maintainers | ljqx |
| Keywords | tagged template, template literals, template string |

## Links

- npm: https://www.npmjs.com/package/tager
- Repository: https://github.com/ljqx/tager
- Homepage: https://github.com/ljqx/tager#readme
- Issues: https://github.com/ljqx/tager/issues
- npm.io page: https://npm.io/package/tager

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-11-29
- 0.0.2 (alpha) — 2018-11-29
- 0.0.1 — 2018-11-29

## README

# Tager
A bunch of helpful tags for [template strings](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals).

## Install
```
npm install tager
```
## API

### crlf => string

```js
crlf`multi
line
string
`
// => 'multi\r\nline\r\nstring\r\n'
```
### identity => string

```js
identity`${1} template string`
// => 1 template string
// same as `${1} template string`
```
### lf => string

```js
lf`multi
line
string
`
// => 'multi\nline\nstring\n'
```
### lines => string[]

```js
lines`multi
line
string
`;
// => ['multi', 'line', 'string', '']
```
### regexp => RegExp

```js
regexp`\w+${1 + 1}*\node_modules/${'.bin'}`;
// => /\w+2*\node_modules\/.bin/
```

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