@azu/format-text

String formatting library inspired from Python

Stats

StarsIssuesVersionUpdatedCreatedSize
@azu/format-text
001.0.15 years ago5 years agoMinified + gzip package size for @azu/format-text in KB

Readme

@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°.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.