0.1.1 • Published 6 years ago
fortunejs v0.1.1
fortune(topic, options) ⇒ Promise.<string>
Returns a random fortune from fortune-mod, which is licensed under the Simplified BSD Licence. The original README can be found in the 'db' directory of this package
Kind: global function
Returns: Promise.<string> - A promise to return the fortune. If no fortune
matches the given options, the promise returns an empty string
Param | Type | Description |
---|---|---|
topic | string | An optional topic for the fortune |
options | Object | An options object with members 'topic' (fortune topic) and 'dirty' (whether fortune should be dirty) |