@technik-sde/render
    TypeScript icon, indicating that this package has built-in type declarations

    0.6.0 • Public • Published

    render: replaces variables within a string

    simple helper to render variables into a string

    yarn add @technik-sde/render or npm install @technik-sde/render

    Example

    import render from "@technik-sde/render";
     
    const message = render("Unknown error {{code}} when requesting article '{{articleId}}'", {
        code: "unknown-gateway-error",
        articleId: "KKejy4VnWKP7WB5wymthtX"
    });
    // message: "Unhandled error: unknown-gateway-error, when requesting article 'KKejy4VnWKP7WB5wymthtX'"

    Keywords

    none

    Install

    npm i @technik-sde/render

    DownloadsWeekly Downloads

    0

    Version

    0.6.0

    License

    MIT

    Unpacked Size

    6.92 kB

    Total Files

    10

    Last publish

    Collaborators

    • philippw
    • thomas.angermeier.jambit
    • szdm.de-team
    • julesvonknoblauch
    • one-bereitstellen
    • szdm-pay
    • koenekle
    • mawa
    • sz-magazin
    • cpinkau
    • etola
    • daraff
    • szdm-admin
    • jetztde
    • matthaias
    • daandi
    • severin.schmid
    • benurb
    • gbadur
    • sz.florian.fehrenbacher
    • brehmi
    • neovatar
    • benimnetz
    • jakob.kohl
    • ronald.ploeger
    • kloibers
    • fojambit
    • jinnbeam
    • ntnwlf
    • ornellagiau
    • jkandler
    • felix.ifc
    • noackt
    • chris-hold
    • agolovko
    • robert.gruner
    • katharinasz
    • sbj-iteratec
    • oneapp.devops
    • chris-mang
    • janstuemmel
    • aboservices-pipeline
    • msh-jgr
    • florian.siegel.netlight
    • floriankaulfersch
    • jingyiwang
    • etusak
    • tgrund
    • dstraub
    • daniel.betz
    • gabrielhase
    • manfred.harrer
    • eiks