1.0.2 • Published 1 year ago

javascript-string-format-polyfill v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

javascript-string-format-polyfill

Logic-less polyfill to add {{mustache}} templates to String type

How to use

Import this where you starts application:

require('javascript-string-format-polyfill'); // with javascript
import 'javascript-string-format-polyfill';   // with typescript

// rest of app

When use typescript, you can add this in tsconfig.json file:

{
  "compilerOptions": {
    ...
  },
  "ts-node": {
    "require": ["javascript-string-format-polyfill"]
  }
}

And no need import in app. That's it!