small-supplant
Small module that does variable replacement in strings:
// Hello, John
It also supports deep properties:
// Full name: Peter Parker
and custom delimiters:
supplantdelimiters = '${' '}' // <p>Nice!</p> supplantdelimiters = '<?=' '?>' // I love PHP!
And nothing else. Just it!
installation
npm install small-supplant --save
For browsers, you can copy the small-supplant.browser.js
in the browser
folder, and include it into your page.
tests
npm install && npm test
browser support
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|
✔ |
✔ |
+IE9 ✔ |
✔ |
✔ |
license
MIT