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

0.1.0 • Public • Published

any-template

A tiny package for parsing and stringifying tagged template strings. Make a tiny template in seconds:

import template from "any-template";
const greeting = template`Good ${"timeOfDay"}, ${"name"}!`;
greeting.parse("Good morning, friend!") // { timeOfDay: "morning", name: "friend" }
greeting.stringify({ timeOfDay: "evening", name: "Pikachu" }) // "Good evening, Pikachu!"

Package Sidebar

Install

npm i any-template

Weekly Downloads

2

Version

0.1.0

License

ISC

Unpacked Size

2.92 kB

Total Files

4

Last publish

Collaborators

  • skra-pa-pa