Submit
Path:
~
/
/
usr
/
share
/
nodejs
/
is-path-inside
/
File Content:
index.js
'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) ); };
Submit
FILE
FOLDER
Name
Size
Permission
Action
index.d.ts
758 bytes
0644
index.js
290 bytes
0644
package.json
590 bytes
0644
N4ST4R_ID | Naxtarrr