https://github.com/blakeembrey/js-template
Fast and simple string templates
https://github.com/blakeembrey/js-template
string-template template-engine
Last synced: 7 months ago
JSON representation
Fast and simple string templates
- Host: GitHub
- URL: https://github.com/blakeembrey/js-template
- Owner: blakeembrey
- License: other
- Created: 2019-02-17T02:43:48.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T03:30:31.000Z (over 1 year ago)
- Last Synced: 2025-08-24T07:32:15.664Z (7 months ago)
- Topics: string-template, template-engine
- Language: TypeScript
- Homepage:
- Size: 375 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Template
[](https://npmjs.org/package/@blakeembrey/template)
[](https://npmjs.org/package/@blakeembrey/template)
[](https://github.com/blakeembrey/js-template/actions/workflows/ci.yml?query=branch%3Amain)
[](https://coveralls.io/r/blakeembrey/js-template?branch=master)
> Fast and simple string template library.
## Installation
```
npm install @blakeembrey/template --save
```
## Usage
```js
import { template } from "@blakeembrey/template";
const fn = template("Hello {{name}}!");
fn({ name: "Blake" }); //=> "Hello Blake!"
```
## TypeScript
This module uses [TypeScript](https://github.com/Microsoft/TypeScript) and publishes type definitions on NPM.
## License
Apache 2.0