Skip to content

Resolve path from CWD (Current Working Directory)

License

Notifications You must be signed in to change notification settings

WezomAgency/from-cwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

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