https://github.com/ambar/olt
ejs lodash-template template template-literals
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ambar/olt
- Owner: ambar
- License: mit
- Created: 2018-12-25T13:16:11.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T14:06:41.000Z (over 1 year ago)
- Last Synced: 2024-04-24T15:45:50.739Z (about 1 year 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.
[](https://coveralls.io/github/ambar/olt?branch=main)
[](https://www.npmjs.com/package/olt)
[](https://bundlephobia.com/result?p=olt)
## 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'
```