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

https://github.com/dergoogler/stringtemp

Inject an array of items in to a string replacing selected values.
https://github.com/dergoogler/stringtemp

Last synced: 8 months ago
JSON representation

Inject an array of items in to a string replacing selected values.

Awesome Lists containing this project

README

          

# StringTemp

Inject an array of items in to a string replacing selected values.

## Install

```shell
bun add stringtemp
```

## Setup

```ts
import StringTemp from "stringtemp";

const str = new StringTemp("{", "}");

const hello = srt.inject("Hello {name}", { name: "Kevin" });

console.log(hello);
```