Skip to content

Commit 1112425

Browse files
committed
updated readme formatting
1 parent f5452bb commit 1112425

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11

22
### Simple usage:
33

4-
```var camelGotHumps = camelCaseRecursive({'test-1':123, 'test-2':{'test-3:':{'test-four':132}}});
4+
var camelGotHumps = camelCaseRecursive({'test-1':123, 'test-2':{'test-3:':{'test-four':132}}});
55

6-
//{ test1: 123, test2: { 'test3:': { testFour: 132 } } }
7-
console.log(camelGotHumps);```
6+
//{ test1: 123, test2: { 'test3:': { testFour: 132 } } }
7+
console.log(camelGotHumps);
88

99
### Works with Arrays too:
1010

11-
```
12-
var anotherCamelWithTheHump = camelCaseRecursive({
13-
'test-1': 123,
14-
'test-Two': [{
15-
'test-three': {
16-
'test-FOUR': [{'test-five':[{testSix:{'test-seven':8}}]}]
17-
}
18-
}]
19-
});
11+
var anotherCamelWithTheHump = camelCaseRecursive({
12+
'test-1': 123,
13+
'test-Two': [{
14+
'test-three': {
15+
'test-FOUR': [{'test-five':[{testSix:{'test-seven':8}}]}]
16+
}
17+
}]
18+
});
2019

21-
{"test1":123,"testTwo":[{"testThree":{"testFour":[{"testFive":[{"testSix":{"testSeven":8}}]}]}}]}console.log(JSON.stringify(anotherCamelWithTheHump));```
20+
{"test1":123,"testTwo":[{"testThree":{"testFour":[{"testFive":[{"testSix":{"testSeven":8}}]}]}}]}console.log(JSON.stringify(anotherCamelWithTheHump));
2221

2322
### More information on internal modules
2423
Please refer to (camelcase)[https://www.npmjs.com/package/camelcase], (map-obj)[https://www.npmjs.com/package/map-obj] and (isarray)[https://www.npmjs.com/package/isarray] npm modules

0 commit comments

Comments
 (0)