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

https://github.com/rmariuzzo/untoken

A token replacement tool.
https://github.com/rmariuzzo/untoken

replace-text template-engine token untoken

Last synced: 7 months ago
JSON representation

A token replacement tool.

Awesome Lists containing this project

README

          

![untoken: A token replacement tool for text.](.github/banner.svg)

### Motivation

I have been looking for a simple tool that replace tokens in a given text with given set of values. Yes, the ability to _un-token_ a text.

## Installation

```sh
npm i untoken
```

## Usage

```ts
import { untoken } from 'untoken'

untoken('Hello {name}!', { name: 'Rubens' })
// Hello Rubens!
```

### Development

1. Clone this repo.
2. Install dependencies: `npm i`
3. Profit!

### Tests

```sh
npm t
```

### Publishment

Every semver tag pushed to this will be published [via GitHub Actions](.github/workflows/publish.yml).







Crafted by [Rubens Mariuzzo](https://github.com/rmariuzzo).

[MIT license](LICENSE)