Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    string-to-templatepublic

    string-to-template

    ES6 template literal starting from a string. Common scenario when working from json config files.

    Install

    npm i string-to-template --save

    Usage

    const execute = require('string-to-template')
     
    const result = execute("hello ${name}", { name: 'John'})
    const another = execute("extension is \"${filename.split('.')[1]}\"", { filename: 'hi.json' })

    License

    MIT

    install

    npm i string-to-template

    Downloadsweekly downloads

    7

    version

    1.0.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar