Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ambar/olt


https://github.com/ambar/olt

ejs lodash-template template template-literals

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# olt

A dead simple, one-line template function.

[![Coverage Status](https://coveralls.io/repos/github/ambar/olt/badge.svg?branch=main)](https://coveralls.io/github/ambar/olt?branch=main)
[![npm version](https://badgen.net/npm/v/olt)](https://www.npmjs.com/package/olt)
[![minzipped size](https://badgen.net/bundlephobia/minzip/olt)](https://bundlephobia.com/result?p=olt)
![module](https://badgen.net/badge/module/esm,cjs?list=1)

## Install

```bash
npm install olt
```

## Usage

```js
import olt from 'olt'

olt('name: ${name}, calc: ${1 + 1}, nested: ${`${0}`}')({
name: 'JoJo',
})
// => 'name: JoJo, calc: 2, nested: 0'
```