projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
cosmiconfig
/
dist
/
parseJson.js
1
//
2
'use strict';
3
4
const parseJson = require('parse-json');
5
6
module.exports = function parseJsonWrapper(
7
json ,
8
filepath
9
) {
10
try {
11
return parseJson(json);
12
} catch (err) {
13
err.message = `JSON Error in ${filepath}:\n${err.message}`;
14
throw err;
15
}
16
};