Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/random-wiki
Get a random topic from Wikipedia.org
https://github.com/dustinspecker/random-wiki
Last synced: 2 days ago
JSON representation
Get a random topic from Wikipedia.org
- Host: GitHub
- URL: https://github.com/dustinspecker/random-wiki
- Owner: dustinspecker
- License: mit
- Created: 2015-05-28T02:29:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T03:37:40.000Z (over 6 years ago)
- Last Synced: 2023-04-09T18:51:20.009Z (over 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
random-wiki
===========[![NPM version](https://badge.fury.io/js/random-wiki.svg)](http://badge.fury.io/js/random-wiki) [![Build Status](https://travis-ci.org/dustinspecker/random-wiki.svg?branch=master)](https://travis-ci.org/dustinspecker/random-wiki) [![Coverage Status](https://coveralls.io/repos/dustinspecker/random-wiki/badge.svg?branch=master&service=github)](https://coveralls.io/github/dustinspecker/random-wiki?branch=master)
[![Code Climate](https://codeclimate.com/github/dustinspecker/random-wiki/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/random-wiki) [![Dependencies](https://david-dm.org/dustinspecker/random-wiki.svg)](https://david-dm.org/dustinspecker/random-wiki/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/random-wiki/dev-status.svg)](https://david-dm.org/dustinspecker/random-wiki/#info=devDependencies&view=table)
> Get a random topic from [Wikipedia.org](http://www.wikipedia.org/)
*Inspired by [Sindre Sorhus](https://github.com/sindresorhus)' [review-times](https://github.com/sindresorhus/review-times).*
## CLI
```
$ npm install --global random-wiki
``````
$ random-wiki --helpExample
$ random-wiki
Monsters, Inc.
```## API
```
$ npm install --save random-wiki
``````js
var randomWiki = require('random-wiki');randomWiki().then(function (topic) {
console.log(topic);
//=> Monsters, Inc.
});
```## License
MIT © Dustin Specker