
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
dadjokes-wrapper
Advanced tools
NodeJS wrapper for the ICanHazDadJokes API
This module will help you to get some nice Dad Jokes !
const DadJokes = require('dadjokes-wrapper');
const dj = new Dadjokes();
dj.randomJoke()
.then(res => console.log(res))
.catch(err => console.error(err));
exemple of output
Two guys walked into a bar, the third one ducked.
const DadJokes = require('dadjokes-wrapper');
const dj = new Dadjokes();
dj.randomJoke()
.then(res => console.log(res))
.catch(err => console.error(err));
// Returns a random joke
dj.randomSlackJoke()
.then(res => console.log(res))
.catch(err => console.error(err));
// Returns a random joke formatted for slack
dj.jokeById('R7UfaahVfFd')
.then(res => console.log(res))
.catch(err => console.error(err));
// This method is auto-cached and returns a joke by it's id
dj.jokeImgById('gNu41gNeqjb')
.then(res => res)
.catch(err => console.error(err));
// Returns an image of the joke
dj.searchJoke()
.then(res => console.log(res))
.catch(err => console.error(err));
// Look here for the query parameters available
// https://icanhazdadjoke.com/api#search-for-dad-jokes
With npm installed, run
$ npm install dadjokes-wrapper
Or with yarn installed, run
$ yarn add dadjokes-wrapper
MIT
FAQs
NodeJS wrapper for the ICanHazDadJokes API
We found that dadjokes-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.