simple.string.format
Simple String.format() in javascript.
Lightweight, Zero-dependency
Getting Started
Installation
npm i simple.string.format
Usage
; let helloWorld = "Hello, {0}!"; ///Hello, World! let example1 = "Hello, {0}! this is example # {1}."; /// Hello, World! this is example # 1. let example2 = "{0} + {0} = {1}"; /// 1 + 1 = 2 let example3 = "{{0}} will be replaced with {0}"; /// {0} will be replaced with hi
Demo
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Mike Shaker 🚇 ⚠️ 💻 |