MCPcopy
hub / github.com/browserslist/browserslist / parsePackageOrReadConfig

Function parsePackageOrReadConfig

node.js:177–189  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

175}
176
177function parsePackageOrReadConfig(file) {
178 if (file in parseConfigCache) {
179 return parseConfigCache[file]
180 }
181
182 var isPackage = path.basename(file) === 'package.json'
183 var result = isPackage ? parsePackage(file) : module.exports.readConfig(file)
184
185 if (!process.env.BROWSERSLIST_DISABLE_CACHE) {
186 parseConfigCache[file] = result
187 }
188 return result
189}
190
191function latestReleaseTime(agents) {
192 var latest = 0

Callers 1

node.jsFile · 0.85

Calls 1

parsePackageFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…