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

Function pathInRoot

node.js:128–135  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

126}
127
128function pathInRoot(p) {
129 if (!process.env.BROWSERSLIST_ROOT_PATH) return true
130 var rootPath = path.resolve(process.env.BROWSERSLIST_ROOT_PATH)
131 if (path.relative(rootPath, p).substring(0, 2) === '..') {
132 return false
133 }
134 return true
135}
136
137function check(section) {
138 if (Array.isArray(section)) {

Callers 1

eachParentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected