Skip to content

blakeembrey/js-template

Repository files navigation

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