https://github.com/blazeinferno64/jokify
Random funny dadjokes fetcher
https://github.com/blazeinferno64/jokify
Last synced: 4 months ago
JSON representation
Random funny dadjokes fetcher
- Host: GitHub
- URL: https://github.com/blazeinferno64/jokify
- Owner: BlazeInferno64
- License: mit
- Created: 2025-04-03T09:27:22.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-06-03T09:14:42.000Z (5 months ago)
- Last Synced: 2025-06-03T20:24:13.619Z (5 months ago)
- Language: JavaScript
- Size: 151 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://npm-stat.com/charts.html?package=jokify)
[](https://npmjs.com/package/jokify)
[](https://packagephobia.com/result?p=jokify)
[](https://bundlephobia.com/package/jokify@latest)
[](https://gitpod.io/#https://github.com/blazeinferno64/jokify)# jokify
> Random funny dadjokes fetcher
# Installation
To get started with `jokify`, simply run the following command in your terminal:
[npm](https://npmjs.com) installation command:
```bash
$ npm i jokify
```[yarn](https://yarnpkg.com) installation command:
```bash
$ yarn add jokify
```
# Getting startedFirst, require this library to your project as follows:
```js
const jokify = require("jokify");
```If it's an ES Module then import it to your project as follows:
```js
import jokify from "jokify";
```
# NotesNew to Promises?
If you're not familiar with promises, check out the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) to learn more.
# Api usage
Once you've imported `jokify` into your project, you're ready to fetch your first funny dadjoke.
Here's a simple example to get you started:
```js
// Import the 'JokifyClient' class
const { JokifyClient } = require("jokify");// Create a new instance of 'JokifyClient' class
const client = new JokifyClient();// Call the fetchJoke() method
client.fetchJoke()
.then(result => {
// Log the result
console.log(result);
// Result object contains:
// - joke
// - id
// - status
})
.catch(error => {
// Handle any error(s) which occur
console.error(error);
})
```# LICENSE
`jokify` is released under the MIT License.
View the full license terms here.
# Bugs & Issues
Found a bug or want a new feature?
Report issues and request features on the [jokify issue tracker](https://github.com/blazeinferno64/jokify/issues).
`Thanks for reading!`
`Have a great day ahead :D`