1.0.6 • Published 11 months ago

@bitmetro/phrase-gen v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

PhraseGen

ts

A simple tool to generate keyword phrases for search engine ads.

PhraseGen Screenshot

Usage

You can use PhraseGen as an NPM package, using the API or via the UI.

Usage via UI

Simply head over to https://phrase-gen.bitmetro.io

Usage via NPM package

Install with npm i @bitmetro/phrase-gen

import { generateOutput } from '@bitmetro/phrase-gen'

const results = generateOutput(
  [
    'buy @item in @city',
    '@item for sale in @city'
  ],
  [
    {
      name: 'item',
      values: ['flowers', 'chairs']
    },
    {
      name: 'city',
      values: ['london', 'paris']
    }
  ]
)

Usage via API

The API is open and can be easily accessed:

POST https://phrase-gen-api.bitmetro.io/api/v1/phrases
Content-Type: application/json

{
    "inputs": ["buy @item in @city"],
    "variables": [
        {
            "name": "item",
            "values": ["chairs", "tables"]
        },
        {
            "name": "city",
            "values": ["london", "paris"]
        }
    ]
}
1.0.6

11 months ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago