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

Function parsePackageOrReadConfig

node.js:178–190  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

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

Callers 1

node.jsFile · 0.85

Calls 1

parsePackageFunction · 0.85

Tested by

no test coverage detected