1.1.0 • Published 1 month ago

from-cwd v1.1.0

Weekly downloads
110
License
MIT
Repository
github
Last release
1 month ago

from-cwd

license types npm npm npm

Resolve path from CWD (Current Working Directory)

Definition

fromCWD(...paths: string[]): string

Usage

const fromCWD = require('from-cwd');
// or
const { fromCWD } = require('from-cwd');

const resolvedPath1 = fromCWD('my-folder/my.file');
// or
const resolvedPath2 = fromCWD('my-folder/', 'my.file');