Sha256: c9a6405598cd76831faf2d5e258bd53750bd0d375d6336fede7d927ee28db156
Contents?: true
Size: 290 Bytes
Versions: 50
Compression:
Stored size: 290 Bytes
Contents
'use strict'; const path = require('path'); module.exports = (childPath, parentPath) => { const relation = path.relative(parentPath, childPath); return Boolean( relation && relation !== '..' && !relation.startsWith(`..${path.sep}`) && relation !== path.resolve(childPath) ); };
Version data entries
50 entries across 50 versions & 2 rubygems