Skip to content

Commit

Permalink
[Release] v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkdev committed Jun 29, 2018
1 parent 2392096 commit ffbe0f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.0.1 (June 29, 2018)

* Update: README.md


# v1.0.0 (June 12, 2018)

* First Release.
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
<p align="center"><h1 align="center">json-token-replace</h1></p>

<p align="center"><a href="#" alt="License"><img src="https://img.shields.io/badge/license-GLPv3-brightgreen.svg"></a>
<a href="https://github.com/ptkdev/json-token-replace/releases" alt="Version"><img src="https://img.shields.io/badge/version-v1.0.0-lightgrey.svg"></a>
<a href="https://github.com/ptkdev/json-token-replace/releases" alt="Version"><img src="https://img.shields.io/badge/version-v1.0.1-lightgrey.svg"></a>
<a href="https://slack.ptkdev.io" alt="Slack Chat"><img src="https://img.shields.io/badge/chat%20on-slack-orange.svg"></a>
<a href="http://blog.ptkdev.io" alt="Blog"><img src="https://img.shields.io/badge/blog-medium-2AE176.svg"></a>
<a href="https://twitter.com/ptkdevio" alt="Twitter"><img src="https://img.shields.io/badge/twitter-ptkdevio-2AA3EF.svg"></a>
<a href="mailto:support@ptkdev.io" alt="Support: support@ptkdev.io"><img src="https://img.shields.io/badge/help-support@ptkdev.io-fbbc05.svg"></a></p>
<p align="center"><a href="http://patreon.ptkdev.io" alt="Patreon Backer"><img src="https://img.shields.io/badge/donate-patreon-F87668.svg"></a> <a href="http://paypal.ptkdev.io" alt="Paypale Donate"><img src="https://img.shields.io/badge/donate-paypal-46AFE0.svg"></a></p>

<p align="center"><a href="http://patreon.ptkdev.io" alt="Patreon Backer"><img src="https://img.shields.io/badge/donate-patreon-F87668.svg"></a> <a href="http://paypal.ptkdev.io" alt="Paypale Donate"><img src="https://img.shields.io/badge/donate-paypal-46AFE0.svg"></a> <a href="http://coffee.ptkdev.io" alt="Ko-fi Donate"><img src="https://img.shields.io/badge/buy%20me-coffee-4B788C.svg"></a></p>

## What does it do
Replace the token string {{hello}} in json with value from another json where key is token {"hello":"bye"}
Expand All @@ -27,18 +28,13 @@ Output:
* [] Easy to use

## Fast setup
1. Add dependencies on `package.json`
```
"dependencies": {
"json-token-replace": "^1.0.0",
}
```
1. Run `npm install json-token-replace --save`
2. In your code:
```
const Jtr = require("json-token-replace");
const jtr = new Jtr();
let json_output = jtr.replace("./json_with_tokens.json", "./json.json");
let json_output = jtr.replace(require("./json_with_tokens.json"), require("./json.json"));
```
3. If work add star :star: at this project :heart:
4. If you want help me: <b><a href="http://paypal.ptkdev.io">donate on paypal</a></b> or become a <b><a href="http://patreon.ptkdev.io">backer on patreon</a></b>.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "json-token-replace",
"version": "1.0.0",
"description": "Replace the token string {{hello}} in json with value from another json where key is token {\"hello\":\"bye\"}",
"version": "1.0.1",
"main": "main.js",
"author": "Patryk Rzucidlo [@ptkdev] <support@ptkdev.io> (https://ptkdev.it)",
"license": "GPL-3.0",
Expand Down

0 comments on commit ffbe0f1

Please sign in to comment.