MCPcopy Create free account
hub / github.com/browserslist/browserslist / parsePackageOrReadConfig

Function parsePackageOrReadConfig

node.js:202–214  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

200}
201
202function parsePackageOrReadConfig(file) {
203 if (file in parseConfigCache) {
204 return parseConfigCache[file]
205 }
206
207 var isPackage = path.basename(file) === 'package.json'
208 var result = isPackage ? parsePackage(file) : module.exports.readConfig(file)
209
210 if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
211 parseConfigCache[file] = result
212 }
213 return result
214}
215
216function latestReleaseTime(agents) {
217 var latest = 0

Callers 1

node.jsFile · 0.85

Calls 1

parsePackageFunction · 0.85

Tested by

no test coverage detected