/js-template

Fast and simple string templates

Primary LanguageTypeScriptOtherNOASSERTION

Template

NPM version NPM downloads Build status Test coverage

Fast and simple string template library.

Installation

npm install @blakeembrey/template --save

Usage

import { template } from "@blakeembrey/template";

const fn = template("Hello {{name}}!");

fn({ name: "Blake" }); //=> "Hello Blake!"

TypeScript

This module uses TypeScript and publishes type definitions on NPM.

License

Apache 2.0