named-format
Like util.format, but uses object props
Built with ❤︎ by tiaanduplessis and contributors
Table of Contents
Install
$ npm install named-format
# OR
$ yarn add named-format
Usage
const namedFormat = require('named-format')
console.log(namedformat('My name is :name', { name: 'Tiaan' }))
// My name is Tiaan
Contributing
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
License
Licensed under the MIT License.