Skip to content
forked from azer/format-text

String formatting library inspired from Python

Notifications You must be signed in to change notification settings

azu/format-text

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@azu/format-text

String formatting library inspired from Python

Fork of azer/format-text

Install

$ npm install @azu/format-text

Usage

format = require('@azu/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

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 100.0%