keyword-expansion
Brace expansion for search engine keywords
Last updated 3 years ago by aexmachina .
MIT · Original npm · Tarball · package.json
$ cnpm install keyword-expansion 
SYNC missed versions from official npm registry.

keyword-expansion

Provides a syntax for SEO keywords based on brace expansion. Can be used either as a CLI or as a Node.js module.

CLI Usage

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

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

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

3 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 5
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |