Skip to content

zemlanin/yassium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ES2015 Template Tag for Python-like format strings

Resources

Stars

Watchers

Forks

Packages

No packages published