Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ambar/olt
ejs lodash-template template template-literals
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ambar/olt
- Owner: ambar
- License: mit
- Created: 2018-12-25T13:16:11.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T14:06:41.000Z (about 1 year ago)
- Last Synced: 2024-04-24T15:45:50.739Z (9 months ago)
- Topics: ejs, lodash-template, template, template-literals
- Language: JavaScript
- Size: 541 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```