# @scrabble-solver/wiktionary

> Scrabble Solver 2 - Wiktionary

Latest version **2.4.6** (published 2021-02-18) · CC-BY-NC-ND-4.0 license · 0 weekly downloads

## Install

```sh
npm install @scrabble-solver/wiktionary
pnpm add @scrabble-solver/wiktionary
yarn add @scrabble-solver/wiktionary
bun add @scrabble-solver/wiktionary
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.4.6 |
| Published | 2021-02-18 |
| First published | 2021-01-24 |
| Weekly downloads | 0 |
| License | CC-BY-NC-ND-4.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 158.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 146 |
| Author | Kamil Mielnik |
| Maintainers | kamilmielnik |

## Links

- npm: https://www.npmjs.com/package/@scrabble-solver/wiktionary
- Repository: https://github.com/kamilmielnik/scrabble-solver
- Homepage: https://github.com/kamilmielnik/scrabble-solver#readme
- Issues: https://github.com/kamilmielnik/scrabble-solver/issues
- npm.io page: https://npm.io/package/@scrabble-solver/wiktionary

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.5
- [striptags](https://npm.io/package/striptags.md) ^3.1.1
- [@scrabble-solver/types](https://npm.io/package/@scrabble-solver/types.md) ^2.4.6

## Recent versions

- 2.4.6 (latest) — 2021-02-18
- 2.4.5 — 2021-02-17
- 2.4.4 — 2021-02-03
- 2.4.3 — 2021-01-28
- 2.4.2 — 2021-01-28
- 2.4.1 — 2021-01-27
- 2.4.0 — 2021-01-24

## README

# @scrabble-solver/wiktionary

Fetches [WordDefinition](https://github.com/kamilmielnik/scrabble-solver/blob/master/packages/types/src/WordDefinition.ts) of a given word in a given language from [Wiktionary](https://www.wiktionary.org/). It supports all 174 languages.

## Usage

```ts
import { getWordDefinition } from '@scrabble-solver/wiktionary';

async function main() {
  const { definitions, isAllowed, word } = await getWordDefinition('en', 'feline');

  console.log(`"${word}" - ${isAllowed ? '👍' : '👎'}`); // "feline" - 👍
  console.log(JSON.stringify(definitions, null, 2)); // ["Of or pertaining to cats.","catlike (resembling a cat)"]
}
```

---
_Source: https://npm.io/package/@scrabble-solver/wiktionary · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
