Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 787 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 787 Bytes

yassium

ES2015 Template Tag for Python-like format strings. Powered by Proxy

Build Status

Installation

$ npm install yassium

Usage

const y = require("yassium");

const simplePlaceholder = y`hello ${y}`;
simplePlaceholder("world") === "hello world";

const nestedValue = y`my favorite number is ${y.lol.length}`;
nestedValue({ lol: ["something"] }) === "my favorite number is 1";

Links