https://github.com/elzup/random-word-wikipedia
[π] Get random word from wikipedia random page
https://github.com/elzup/random-word-wikipedia
cli faker random wikipedia
Last synced: about 1 year ago
JSON representation
[π] Get random word from wikipedia random page
- Host: GitHub
- URL: https://github.com/elzup/random-word-wikipedia
- Owner: elzup
- License: mit
- Created: 2018-01-16T14:13:23.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-07-01T00:33:34.000Z (about 1 year ago)
- Last Synced: 2025-07-01T01:33:29.591Z (about 1 year ago)
- Topics: cli, faker, random, wikipedia
- Language: JavaScript
- Homepage:
- Size: 370 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# random-word-wikipedia [](https://github.com/elzup/random-word-wikipedia/actions/workflows/node.js.yml)
> Get random word from wikipedia random page
## Install
```
$ npm install random-word-wikipedia
```
## Usage
```js
const randomWordWikipedia = require("random-word-wikipedia");
randomWordWikipedia().then(console.log);
//=> [ 'Saxifraga spathularis' ]
randomWordWikipedia("ja", 2).then(console.log);
//=> [ 'γΈγ§γ³γ»γ€γ΅γΌγ―γ»γγͺγ±', 'ζγ―ιε€γ«ι γγε¦γ' ]
```
## API
### randomWordWikipedia([lang, n])
#### options
##### lang
Type: `string`
Default: `en`
wikipedia lang string.
##### n
Type: `number` 1 - 10
Default: 1
number of word.
## CLI
```
$ npm install --global random-word-wikipedia
```
```
$ random-word-wikipedia --help
Usage
$ random-word-wikipedia [lang]
Options
-n 10 or less [Default: 1]
Examples
$ random-word-wikipedia
YuruYuri
$ random-word-wikipedia ja -n 4
γγγ€γ³γΈγ£γ©γ³η ζΌ
γγγγ
ε
ι (ε°θ₯ΏεΈ)
PAC-MAN 256
```
## License
MIT Β© [elzup](https://elzup.com)