@ryanforever/tracery

1.0.7 • Public • Published

tracery

This is a simplified implimentation of tracery by galaxykate.

"Tracery is a super-simple tool and language to generate text."

const Tracery = require("@ryanforever/tracery")
const tracery = new Tracery({
	origin: ["#hello# #world# #emoji#"],
	hello: ["hello", "hey", "hi"],
	world: ["world", "earth", "planet earth"],
	emoji: ["🌎", "🌍", "🌏"]
})

tracery("hello")
// hey

tracery("origin")
// hello planet earth 🌎

Readme

Keywords

none

Package Sidebar

Install

npm i @ryanforever/tracery

Weekly Downloads

0

Version

1.0.7

License

ISC

Unpacked Size

2.06 kB

Total Files

5

Last publish

Collaborators

  • ryanforever