Skip to content

azer/format-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

format-text

String formatting library inspired from Python

Install

$ npm install azer/format-text

Usage

format = require('format-text')

format('Hello {0}. The weather is currently {1}°.', 'Kitty', '67')
// => Hello Kitty. The weather is currently 67°.

format('Hello {name}, The weather is currently {degree}°', { name:'Kitty', degree: 67 })
// => Hello Kitty. The weather is currently 67°.

About

String formatting library inspired from Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published