1.0.4 • Published 2 years ago
keyword-farmer v1.0.4
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-farmerExample
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 supportsenkr, default isenlength- Limit the length of keywords to be handled.excludeSpaces- Whether to exclude spaces in words. The default istrue(inclusive).specialKeywords- This is an option to handle special characters (mutations). Special characters are Unicode special characters.only- The keyword list consists only ofspecialKeywords. Also other options are ignoredmixed- Consists of generalkeywordsandspecialKeywordscombine-keywordcharacters containspecialKeywordscombined in random positions.