RunKit + npm: path-is-inside

node v6.17.1
version: 1.0.0
endpointsharetweet
const pathIsInside = require("path-is-inside") const {normalize} = require('path'); const relativePath = '/a/b/c/../../'; const inside = '/a/b'; console.log(`checking to see if ${normalize(relativePath)} is inside of ${inside}`); console.log(pathIsInside(relativePath, inside)); console.log(pathIsInside('/a/', inside));
Created from: https://npm.runkit.com/path-is-inside
Loading…

no comments

    sign in to comment