MCPcopy
hub / github.com/browserslist/browserslist / pathInRoot

Function pathInRoot

node.js:105–112  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

103}
104
105function pathInRoot(p) {
106 if (!process.env.BROWSERSLIST_ROOT_PATH) return true
107 var rootPath = path.resolve(process.env.BROWSERSLIST_ROOT_PATH)
108 if (path.relative(rootPath, p).substring(0, 2) === '..') {
109 return false
110 }
111 return true
112}
113
114function check(section) {
115 if (Array.isArray(section)) {

Callers 1

eachParentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…