string-format
string-format copied to clipboard
JavaScript string formatting inspired by Python’s `str.format()`
I saw at the first line that there's a void keyword before the function keyword, I understood the use case but it's nowadays an inappropriate way to use the function....
Hey David, First of all, thanks for this great library! Particularly I'm interested in features like padding, number type formatting and date-time formatting. It would be interesting to have this...
It'd be somewhat helpful to be able to automatically apply transformers based on the `typeof` for a value. For example: ```js const fmt = format.create({ string: str => "'" +...
How to use this in ionic 4?
Closes #1
Hi, davidchambers, Can named arguments, object keys with spaces ('avg val') or special characters (#, _ etc) be supported? ``` javascript var user = {name: "Dolly", age: 24, 'in co':...
TypeScript becomes popular these days, so it will be great if type definition is included in the npm page so that it could be used in TypeScript projects.
Is there a way to apply a transformer to all arguments? I need this because the template string is user provided so I need a way to treat the replacements...
For example: ``` javascript /**** * string-format * https://github.com/davidchambers/string-format * * @author David Chambers * @link http://davidchambers.me * @version 0.5.0 * * Released under MIT License. See LICENSE.txt or http://opensource.org/licenses/MIT...