Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed Aug 14, 2022
1 parent 6bd50b0 commit 63a171c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,18 @@ Remove the last item from an array
- `path` - The object path
<h4>Return</h4>

- Returns an instance of the `JsonEditor`
- Returns an instance of the `JsonEditor`
<br>



<!-- popTo !-->
### `.getKeys(path)`
Gets the keys of the object
<h4>Params</h4>

- `path` - The object path
<h4>Return</h4>

- Returns an array with all the keys in
<br>
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class editor {
}

/**
*
* Empty an objects content
*
* @param {String} path The object path
*/
emptyObject(path) {
if (!path) {
Expand All @@ -105,6 +107,7 @@ class editor {
}
return this.set(path, {});
}

/**
* Read the JSON file
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@acegoal07/json-editor",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple json file editor",
"main": "index",
"repository": {
Expand Down

0 comments on commit 63a171c

Please sign in to comment.