https://github.com/rmariuzzo/untoken-cli
A token replacement CLI tool for text.
https://github.com/rmariuzzo/untoken-cli
cli replace-text template token untoken
Last synced: 9 months ago
JSON representation
A token replacement CLI tool for text.
- Host: GitHub
- URL: https://github.com/rmariuzzo/untoken-cli
- Owner: rmariuzzo
- License: mit
- Created: 2020-07-16T15:10:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T04:20:14.000Z (over 5 years ago)
- Last Synced: 2025-06-11T11:25:36.701Z (10 months ago)
- Topics: cli, replace-text, template, token, untoken
- Language: TypeScript
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

### Motivation
I have been looking for a simple CLI tool that replace tokens in a text given a set of values. The ability to _un-token_ a text.
## Usage
```sh
npx untoken source.txt target.txt --day=Monday --month=January
```
The above command will process the file `source.txt` and replace any occurrence of `{day}` and/or `{month}` with their respective values. The changes will be saved in `target.txt.
### Development
1. Clone this repo.
2. Install dependencies: `npm i`
3. Profit!
### Tests
```sh
npm t
```
### Publishment
Every semver tag pushed to this repo will be published [via GitHub Actions](.github/workflows/publish.yml).
Crafted by [Rubens Mariuzzo](https://github.com/rmariuzzo).
[MIT license](LICENSE)