Skip to content

Commit

Permalink
feat(cli): add cli util parseJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
Clunt committed May 28, 2018
1 parent 34fa015 commit 6027f0c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/util/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exports.parseJSON = str => {
try {
return JSON.parse(str);
} catch (e) {}
};

0 comments on commit 6027f0c

Please sign in to comment.