# multilines

> The missing template literal for NodeJS.

Latest version **1.0.3** (published 2020-01-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-01-11 |
| First published | 2019-01-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | maticzav |

## Links

- npm: https://www.npmjs.com/package/multilines
- npm.io page: https://npm.io/package/multilines

## Recent versions

- 1.0.3 (latest) — 2020-01-11
- 1.0.2 — 2019-01-23
- 1.0.0 — 2019-01-22
- 0.0.0 — 2019-01-22

## README

> If this package reaches anyone from NPM, please let me know if we could change the name to `multilinestring`.

# multilines

[![npm version](https://badge.fury.io/js/multilines.svg)](https://badge.fury.io/js/multilines)
[![CircleCI](https://circleci.com/gh/maticzav/multilinestring/tree/master.svg?style=shield)](https://circleci.com/gh/maticzav/multilinestring/tree/master)
[![codecov](https://codecov.io/gh/maticzav/multilinestring/branch/master/graph/badge.svg)](https://codecov.io/gh/maticzav/multilinestring)

> The missing template literal for NodeJS.

## Overview

`multilines` removes all spaces before `|` character and first space after if present.

- 💅 **Prettier code style:** You no longer have to care about spaces in multiline strings!
- 🌳 **Zero dependencies:** Completely self contained!
- 💡 **Inspired by Scala code style:** Used by the best, now implemented for everyone.

## Installation

```bash
yarn add multilines
```

## Example

```ts
import mls from 'multilines'

// Before

function generate(...args) {
  const string = `
I have to start at the beggining of the line
so I don't break the string indentation.
  `
}

// After

function generate(...args) {
  const string = mls`
    | I can be aligned with other code
    | and everything still works as expected.
    `
}
```

## License

MIT @ Matic Zavadlal

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