# saihubot-skill-search

> Saihubot search skills.

Latest version **0.38.0** (published 2022-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install saihubot-skill-search
pnpm add saihubot-skill-search
yarn add saihubot-skill-search
bun add saihubot-skill-search
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.38.0 |
| Published | 2022-03-17 |
| First published | 2020-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 22.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Fred Lin |
| Maintainers | gasolin |
| Keywords | saihubot-skill |

## Links

- npm: https://www.npmjs.com/package/saihubot-skill-search
- Repository: https://github.com/gasolin/saihubot
- Homepage: https://github.com/gasolin/saihubot/tree/gh-pages/packages/saihubot-skill-search#readme
- Issues: https://github.com/gasolin/saihubot/issues
- npm.io page: https://npm.io/package/saihubot-skill-search

## Recent versions

- 0.38.0 (latest) — 2022-03-17
- 0.37.0 — 2020-12-30
- 0.36.0 — 2020-12-11
- 0.35.0 — 2020-12-02
- 0.34.7 — 2020-11-21
- 0.34.6 — 2020-11-21
- 0.34.5 — 2020-11-21
- 0.34.4 — 2020-11-21
- 0.34.3 — 2020-11-21
- 0.34.0 — 2020-11-19
- 0.33.0 — 2020-11-17
- 0.30.7 — 2020-11-10
- 0.30.6 — 2020-11-08
- 0.30.0 — 2020-11-07
- 0.29.0 — 2020-11-06
- … 9 more at https://npm.io/package/saihubot-skill-search/versions

## README

# Saihubot-skill-search

Saihubot-skill-search provide a range of search skills that works for HTML and Command Line.

`import {searchSkills} from 'saihubot-skill-search';`

* Duckduckgo (duckduckgo|duck [term])
* Wikipedia (wikipedia|w|wiki [term])
* Google (google|g [term])
* Google Translate (translate|tr|trans|gt [term])
* Google Images (images|image|gi [term])
* Google Maps (maps|map|gm [term])
* Google Trends (trends [term])
* Youtube (youtube|yt [term])
* Twitter (twitter [term])

`import {devSkills} from 'saihubot-skill-search';`

* Github (github|gh [term])
* MDN (mdn [term])
* NPM (npm [term])
* Stackoverflow (stackoverflow|stack|so [term])
* Wolfram (wolfram|wolf|wo [term])
* Cheat.sh (cheat |cheatsh |cheat.sh [term])

## Install

```sh
npm install saihubot-addon-search saihubot-skill-search
```

(in html)

```js
import htmlAdapter from 'node_modules/saihubot-html-adapter/saihubot-html-adapter.js'
import addonSearch from 'node_modules/saihubot-html-adapter/saihubot-html-addon-search.js'
import { skills } from 'node_modules/saihubot-skill-search/index.js'
```

(in module)

```js
import { skills } from 'saihubot-skill-search'
```

that you can include `skills` via

```js
new SaihuBot({
  skills: [...skills],
});
```

Of course you can only import certain search skills into your bot

```js
import { skillSearchGoogle } from 'saihubot-skill-search'

new SaihuBot({
  skills: [skillSearchGoogle],
});
```

## Usage

Check the [Search Demo](https://gasolin.github.io/saihubot/samples/search).

### :mag_right: Google Search skill:

```
me: g saihubot
bot: Search saihubot via Google
me: google saihubot
bot: Search saihubot via Google
me: search saihubot
bot: Search saihubot via Google
```

### Wikipedia skill:

```
me: wiki saihubot
bot: Search saihubot via Wikipedia
me: wikipedia saihubot
bot: Search saihubot via Wikipedia
```

### Google Translate skill

```
me: translate hello
bot: Translate hello via Google Translate
me: tr saihubot
bot: Translate hello via Google Translate
```

---
_Source: https://npm.io/package/saihubot-skill-search · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
