npm.io
1.0.2 • Published 3 years ago

javascript-string-format-polyfill

Licence
MIT
Version
1.0.2
Deps
2
Size
4 kB
Vulns
0
Weekly
0

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!

Keywords