I published a repo called searchfiy on GitHub
Itachi Uchiha

Itachi Uchiha @itachiuchiha

About: I'm a front-end developer. I'm living in Turkey. I started my professional career in 2016. I also interest in Backend, SQL technologies.

Location:
Turkey
Joined:
Nov 21, 2017

I published a repo called searchfiy on GitHub

Publish Date: May 25 '20
30 6

Hi everyone!

I published a repository called searchify for a hobby. It is written in JavaScript.

Searchify generates searchable links (optionally anchor tags) for search engines or custom URLs. Maybe that would be useful for you.

I'm not sure if this will help someone. But I used searchify in my project with Vue.

Pull Requests are welcome. Thanks!

GitHub logo aligoren / searchify

A very simple searchable link generator.

Searchify

A very simple searchable link generator.

Usage

You can use searchify with pre-defined search engines or custom.

Vendors

  • google
  • 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
}
Enter fullscreen mode Exit fullscreen mode

Usage

searchify(keyword, options?)

Using Google

const keyword = 'Who is John Doe?'
const url = searchify(keyword, {
    'type': 'vendor',
    'vendor': 'google',
})
Enter fullscreen mode Exit fullscreen mode

Using Yandex

const keyword = 'Who is John Doe?'
const url = searchify
Enter fullscreen mode Exit fullscreen mode

Comments 6 total

  • Markel F.
    Markel F.May 25, 2020

    Nice idea! It would be nice if browsers allowed to query for the default search engine and could be hook up to this (dreaming is free)

    • Itachi Uchiha
      Itachi UchihaMay 25, 2020

      It would be good. Is there a way to do this idea?

      Thanks for your comment!

  • Ali Sherief
    Ali SheriefMay 25, 2020

    This is cool! I'm going to play around with this.

  • Miłosz Wiśniewski
    Miłosz WiśniewskiMay 26, 2020

    I made small pull request :D

    • Itachi Uchiha
      Itachi UchihaMay 26, 2020

      I merged :) You're amazing. Thank you very much ^_^

Add comment