from-cwd Resolve path from CWD (Current Working Directory) Definition fromCWD(...paths: string[]): string Usage const fromCWD = require('from-cwd'); const resolvedPath1 = fromCWD('my-folder/my.file'); // or const resolvedPath2 = fromCWD('my-folder/', 'my.file');