JSPM

ipol8

1.0.2
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q32561F
    • License ISC

    Easy way to interpolate strings

    Package Exports

    • ipol8

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ipol8) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    To interpolate your variables into one string, just add the $ marks to the original string and pass each value as a parameter:

    var i = require('ipol8');
    var name = 'Porta8080';
    var output = i('Hello, $ and welcome to $!',name,'Ipol8');

    You can pass any number of parameters.

    Alternatively, you can pass the values as an array to programatically make interpolations.

    i('Hello, $ $',['John','Doe']);