jibberish
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Jibber

Jibber is a JavaScript library for useful gibberish. It simplifies the creation of random yet plausible UI elements, text, fonts, and images.

Jibber can be used for placeholders, layout testing, or fingerprinting — unique visual identifiers for specific data, designed for easy human differentiation.

Installation

npm install jibber
# or
yarn add jibber

then

<script type="module">
  import jibber from "jibber";
  const font = jibber.font("futuristic", { seed: "123", weight: 700 });
  const text = jibber.text("lorem", { seed: "123", length: 10 });
  const symbol = jibber.symbol("minimal-path", { seed: "123" });
  // Apply the generated font to a heading
  document.getElementById("jibber-heading").style.fontFamily = font;
  // Set the generated text content
  document.getElementById("jibber-text").textContent = text;
  // Insert the generated symbol SVG
  document.getElementById("jibber-symbol").innerHTML = symbol;
</script>

<body>
  <h1 id="jibber-heading">Jibber Example</h1>
  <p id="jibber-text"></p>
  <div id="jibber-symbol"></div>
</body>

Package Sidebar

Install

npm i jibberish

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

58 kB

Total Files

36

Last publish

Collaborators

  • orionreed