Skip to content

Commit fb25be6

Browse files
committed
readme contributing docs
1 parent 9edb09f commit fb25be6

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Contributing
2+
3+
### Thanks, for considering to contribute to this repository!
4+
5+
When contributing to this repository, please first discuss the change you wish to make via issue,
6+
email, or any other method with the owners of this repository before making a change.
7+
8+
If you are looking forward to start contributing to beautiful world of open source.
9+
**Start it right now.**
10+
11+
The basic guidelines for contributing are as follows:
12+
- Fork the repo
13+
- Clone the repo
14+
- Create a branch using
15+
- `git checkout -b feature-branch`
16+
- Make the required changes
17+
- Test the changes by using below command
18+
- `yarn` (Installs all the dependencies)
19+
- `yarn test`
20+
- Create a pull request using below commands
21+
- `git add --all`
22+
- `git commit -m "your commit message"`
23+
- `git push origin feature-branch`
24+
- Go to [Repository](https://github.com/arshadkazmi42/json-nested-replace/)
25+
- Create Pull Request against `master` branch
26+
- Add a suitable title and description to the pull request and tag the issue number in Pull Request description, if the pull request is related to some issue logged here: [Issues](https://github.com/arshadkazmi42/json-nested-replace/issues)
27+
- You're done. Wait for your code to get reviewed and merged
28+
- Optional: Give us a :star: if you like our work :smile:

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,63 @@
11
# json-nested-replace
2+
3+
[![Build Status](https://travis-ci.com/arshadkazmi42/json-nested-replace.svg?branch=master)](https://travis-ci.com/arshadkazmi42/json-nested-replace)
4+
[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace)
5+
[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace/graphs/contributors)
6+
[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace/commits/master)
7+
28
Searches and replace values at every level of nested json
9+
10+
> Give us a :star: if you like our work :heart:
11+
12+
<a href="https://www.buymeacoffee.com/arshadkazmi42" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
13+
<a href="https://www.patreon.com/bePatron?u=15454240" target="_blank"><img src="https://c5.patreon.com/external/logo/become_a_patron_button.png" alt="Become a Patron!" height="40"></a>
14+
15+
Please consider donating, if you like my work
16+
17+
## Install
18+
19+
```
20+
$ npm install json-nested-replace
21+
```
22+
23+
## Usage
24+
25+
```javascript
26+
const jnestedReplace = require('json-nested-replace');
27+
28+
const INPUT_JSON = {
29+
'name': 'json-nested-replace',
30+
'author': 'Arshad Kazmi',
31+
'repository': {
32+
'url': 'https://github.com/arshadkazmi42/json-nested-replace',
33+
'language': 'js'
34+
}
35+
};
36+
37+
const replacedJSONValue = jnestedReplace(INPUT_JSON, 'json-nested-replace', 'jnested-replace');
38+
console.log(replacedJSONValue);
39+
// Output
40+
/** {
41+
* 'name': 'jnested-replace',
42+
* 'author': 'Arshad Kazmi',
43+
* 'repository': {
44+
* 'url': 'https://github.com/arshadkazmi42/jnested-replace',
45+
* 'language': 'js'
46+
* }
47+
* }
48+
**/
49+
50+
51+
const replacedStringValue = jnestedReplace('json-nested-replace', 'json-nested', 'jnested');
52+
console.log(replacedStringValue)
53+
// Output
54+
// jnested-replace
55+
56+
```
57+
58+
## Contributing
59+
60+
Interested in contributing to this project?
61+
You can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/json-nested-replace/issues/new)
62+
63+
Read our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase

0 commit comments

Comments
 (0)