yassium

ES2015 Template Tag for Python-like format strings


License
MIT
Install
npm install yassium@1.1.1

Documentation

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