# duden-search-api

> Search API für duden.de

Latest version **1.0.7** (published 2019-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install duden-search-api
pnpm add duden-search-api
yarn add duden-search-api
bun add duden-search-api
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-12-26 |
| First published | 2017-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | coderwelsch |

## Links

- npm: https://www.npmjs.com/package/duden-search-api
- npm.io page: https://npm.io/package/duden-search-api

## Dependencies (1)

- [nightmare](https://npm.io/package/nightmare.md) ^3.0.2

## Recent versions

- 1.0.7 (latest) — 2019-12-26
- 1.0.6 — 2019-12-25
- 1.0.5 — 2019-12-25
- 1.0.4 — 2019-12-25
- 1.0.3 — 2017-05-14
- 1.0.2 — 2017-05-10
- 1.0.1 — 2017-05-08
- 1.0.0 — 2017-05-08

## README

# duden-search-api
![](https://upload.wikimedia.org/wikipedia/commons/a/af/Duden_Logo_2017.svg)
A Node.js Duden.de 'API' (website scraper for searching of german words on duden.de)

## Install
```bash
npm i duden-search-api --save
```

## Usage
````javascript
const DudenSearchApi = require( "duden-search-api" );

let instance = new DudenSearchApi();

instance.searchWord( "gestern" ).then( ( result ) => {
	console.log( result );
} ).catch( ( error ) => {
	console.log( error );
} );
````

### The result array
The resulted return value is in the following scheme:
```javascript
[
	{
		"word": "gestern",
		"props": {
			"wordClass": "Adverb",
			"hyphenation": [
				"ges",
				"tern"
			],
			"meanings": [
				"an dem Tag, der dem heutigen unmittelbar vorausgegangen ist",
				"früher"
			],
			"ancestry": "mittelhochdeutsch gester(n), althochdeutsch gesteron, eigentlich = am anderen Tag"
		}
	}
]
```

## Todo
- [x] simple word search
- [x] extend word results (distribution, hyphenation, ancestry, examples)
- [ ] documentation ;)
- [ ] …

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