JFormat
Python function str.format for JavaScript
Installation
Module available through the npm registry. It can be installed using the npm
or yarn
command line tools.
# NPM npm install jformat --save# Or Using Yarn yarn add jformat
Example
"Forever {Python}";// "Forever JavaScript" "Forever {0}";// "Forever JavaScript" "Forever {Java}";// "Forever " ;// "Forever JavaScript" ;// "Forever JavaScript" ;// "Forever "
Documentation
Options
- string
Type: string
- table
Type: array
& object
- HideIfNull
Type: boolean
Tests
To run the test suite, first install the dependencies, then run test
:
# NPM npm test# Or Using Yarn yarn test
Dependencies
None
Contributors
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.