Skip to content

Commit ffbe0f1

Browse files
committed
[Release] v1.0.1
1 parent 2392096 commit ffbe0f1

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v1.0.1 (June 29, 2018)
2+
3+
* Update: README.md
4+
5+
16
# v1.0.0 (June 12, 2018)
27

38
* First Release.

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
<p align="center"><h1 align="center">json-token-replace</h1></p>
44

55
<p align="center"><a href="#" alt="License"><img src="https://img.shields.io/badge/license-GLPv3-brightgreen.svg"></a>
6-
<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>
6+
<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>
77
<a href="https://slack.ptkdev.io" alt="Slack Chat"><img src="https://img.shields.io/badge/chat%20on-slack-orange.svg"></a>
88
<a href="http://blog.ptkdev.io" alt="Blog"><img src="https://img.shields.io/badge/blog-medium-2AE176.svg"></a>
99
<a href="https://twitter.com/ptkdevio" alt="Twitter"><img src="https://img.shields.io/badge/twitter-ptkdevio-2AA3EF.svg"></a>
1010
<a href="mailto:[email protected]" alt="Support: [email protected]"><img src="https://img.shields.io/badge/[email protected]"></a></p>
11-
<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>
11+
12+
<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>
1213

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

2930
## Fast setup
30-
1. Add dependencies on `package.json`
31-
```
32-
"dependencies": {
33-
"json-token-replace": "^1.0.0",
34-
}
35-
```
31+
1. Run `npm install json-token-replace --save`
3632
2. In your code:
3733
```
3834
const Jtr = require("json-token-replace");
3935
const jtr = new Jtr();
4036
41-
let json_output = jtr.replace("./json_with_tokens.json", "./json.json");
37+
let json_output = jtr.replace(require("./json_with_tokens.json"), require("./json.json"));
4238
```
4339
3. If work add star :star: at this project :heart:
4440
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>.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "json-token-replace",
3-
"version": "1.0.0",
3+
"description": "Replace the token string {{hello}} in json with value from another json where key is token {\"hello\":\"bye\"}",
4+
"version": "1.0.1",
45
"main": "main.js",
56
"author": "Patryk Rzucidlo [@ptkdev] <[email protected]> (https://ptkdev.it)",
67
"license": "GPL-3.0",

0 commit comments

Comments
 (0)