Searchify
A very simple searchable link generator.
Usage
You can use searchify with pre-defined search engines or custom.
Vendors
- yandex
- yahoo
- bing
Params
You can configure URLs by options
keywords
Type: string|Array
options?
Type: object
{
'type': 'vendor', // vendor | custom
'vendor': 'google', // this works when type is vendor
'tld': '', // by default, each url will be generated with .com domain
'qs': '', // query string endpoint for custom URLs
'ssl': null, // by default, protocols will be https. true | false
'createAnchor': false // output will be an anchor tag
}
Usage
searchify(keyword, options?)
Using Google
const keyword = 'Who is John Doe?'
const url = searchify(keyword, {
'type': 'vendor',
'vendor': 'google',
})
Using Yandex
const keyword = 'Who is John Doe?'
const url = searchify
…