New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mad-libber

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mad-libber

Creates a random sentence by replacing keywords - mad libs style.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

mad-libber

Creates a random sentence by replacing keywords - mad libs style.

Install

$ npm install --save mad-libber

Usage

const madlibs = require('mad-libber');

const sentence = '${noun1} likes ${?to? verb1}. ${noun2} likes ${?to? verb2}.';
const data = {
  noun: ["Tim", "MM", "Dan"],
  verb: ["?to? party", "?to? sleep", "staring, slack-jawed, into the abyss"]
};

madlibs(sentence, data);
//=> "MM likes to party. Tim likes to sleep."

FAQs

Package last updated on 22 Feb 2018

Did you know?

Socket

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.

Install

Related posts