# keyword-expansion

> Brace expansion for search engine keywords

Latest version **1.0.3** (published 2017-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install keyword-expansion
pnpm add keyword-expansion
yarn add keyword-expansion
bun add keyword-expansion
```

Provides the command `keyword-expansion`.

## 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 | 2017-06-29 |
| First published | 2017-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | @aexmachina |
| Maintainers | aexmachina |

## Links

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

## Dependencies (2)

- [get-stdin](https://npm.io/package/get-stdin.md) ^5.0.1
- [brace-expansion](https://npm.io/package/brace-expansion.md) ^1.1.8

## Recent versions

- 1.0.3 (latest) — 2017-06-29
- 1.0.1 — 2017-06-29
- 1.0.0 — 2017-06-29

## README

# keyword-expansion

Provides a syntax for SEO keywords based on [brace expansion](https://github.com/juliangruber/brace-expansion#example).
Can be used either as a CLI or as a Node.js module.

## CLI Usage

```bash
npm install -g keyword-expansion
echo '{android,ios} {,app} development {,company}' | keyword-expansion
# Perform
# cat keywords.txt | keyword-expansion
```

Outputs:

```
android development
android development company
android app development
android app development company
ios development
ios development company
ios app development
ios app development company
```

The input can include multiple lines (obvs).

## Module Usage

```js
const expand = require('keyword-expansion')
let keywords = expand('{android,ios} {,app} development {,company}')
console.log(keywords.length) // -> 8
```

### `expand(input, options = {})`

Returns an array of keywords for the `input` string. Each line in `input` is interpreted
as a separate set of keywords to be expanded.

- `options.minNumWords` defines a minimum number of words required for each returned keyword. Defaults to `2`

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