1.0.4 • Published 2 months ago

keyword-farmer v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

keyword-farmer

Overview

If you use this, you are a farmer.
Build and harvest a farm with the crops you want.
Like a farmer tending his farm, create keywords
It will provide you mock keywords data.

Installation

npm install keyword-farmer

Example

import { useKeywordFarm } from 'keyword-farmer';

const { create } =  useKeywordFarm();

create(); 
// output: 'sweater' | 'iphone 14 pro' | 'shirt' ...

Options

interface Config {
  lang?: 'en' | 'kr'
  length?: number | { min?: number, max?: number }
  excludeSpaces?: boolean
  specialKeywords?: 'only' | 'mixed' | 'combine'
}
  • lang - This is the language of keywords. Currently supports en kr, default is en
  • length - Limit the length of keywords to be handled.
  • excludeSpaces - Whether to exclude spaces in words. The default is true (inclusive).
  • specialKeywords - This is an option to handle special characters (mutations). Special characters are Unicode special characters.
    • only - The keyword list consists only of specialKeywords. Also other options are ignored
    • mixed - Consists of general keywords and specialKeywords
    • combine - keyword characters contain specialKeywords combined in random positions.
1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago