fitb

A fill in the blank generator

Usage no npm install needed!

<script type="module">
  import fitb from 'https://cdn.skypack.dev/fitb';
</script>

README

FITB

A fill in the blank generator

Installation

npm install fitb

Usage

const fitb = require("fitb");
fitb("A fill in the blank string.", 3, true); // Returns blanked string, e.g. "_ fill in ___ _____ string."

The first argument is the string where blanks are randomly generated. The second argument is the amount of blanks you want. The last argument is an optional boolean, whether you want the amount of underscores to match the word length being replaced (e.g. "Hi" will be "__" instead of "______").

New lines and tabs will not be replaced with blanks.