import * as path from 'path'; const normalize = (rootPath, childPath) => { const normalizedPath = path.normalize(`${rootPath}/${childPath}`); if (normalizedPath.startsWith(`${rootPath}/`)) { return normalizedPath; } return null; }
Last updated 1 year ago