How to use the loadJson function from cosmiconfig

Find comprehensive JavaScript cosmiconfig.loadJson code examples handpicked from public code repositorys.

89
90
91
92
93
94
95
96
97
98
        this.filepath = filepath;
    }
}

function loadJson(filepath, content) {
    return cosmiconfig.loadJson(filepath, stripBom(stripJsonComments(content)));
}

function loadYaml(filepath, content) {
    return cosmiconfig.loadYaml(filepath, stripBom(content));
fork icon0
star icon0
watch icon0