# qw

> Quoted word literals!

Latest version **1.0.2** (published 2021-10-14) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2021-10-14 |
| First published | 2014-09-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Rebecca Turner |
| Maintainers | iarna |

## Links

- npm: https://www.npmjs.com/package/qw
- Repository: https://github.com/iarna/node-qw
- Homepage: https://github.com/iarna/node-qw#readme
- Issues: https://github.com/iarna/node-qw/issues
- npm.io page: https://npm.io/package/qw

## Recent versions

- 1.0.2 (latest) — 2021-10-14
- 1.0.1 — 2017-04-15
- 1.0.0 — 2016-11-08
- 0.0.1 — 2014-09-23

## README

# qw

Quoted word literals!

```js
const qw = require('qw')

const myword = qw` this is
  a long list
  of words`
// equiv of:
const myword = [ 'this', 'is', 'a', 'long', 'list', 'of', 'words' ]
```

You can embed vars in the usual way:

```js
const mywords = qw`product ${23 * 5} also ${'escaping a string'}`
// equiv of:
const mywords = [ 'product', 23 * 5, 'also', 'escaping a string' ]
```

You can also embed vars inside strings:

```js
const mywords = qw`product=${23 * 5} also "${'escaping a string'}"`
// equiv of:
const mywords = [ 'product=' + (23 * 5), 'also', '"escaping a string"' ]
```

## DESCRIPTION

This uses template strings to bring over this little common convenience from
Perl-land.

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