https://github.com/wezomagency/from-cwd
Resolve path from CWD (Current Working Directory)
https://github.com/wezomagency/from-cwd
cwd from js-tiny-module path resolve
Last synced: 5 months ago
JSON representation
Resolve path from CWD (Current Working Directory)
- Host: GitHub
- URL: https://github.com/wezomagency/from-cwd
- Owner: WezomAgency
- License: mit
- Created: 2018-10-16T10:33:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T21:36:06.000Z (over 6 years ago)
- Last Synced: 2025-10-21T00:56:02.565Z (8 months ago)
- Topics: cwd, from, js-tiny-module, path, resolve
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# from-cwd
[](https://github.com/WezomAgency/from-cwd/blob/master/LICENSE)

[](https://github.com/topics/js-tiny-module)
[](https://www.npmjs.com/package/from-cwd)
[](https://github.com/WezomAgency)
> Resolve path from CWD (Current Working Directory)
### Definition
`fromCWD(...paths: string[]): string`
### Usage
```js
const fromCWD = require('from-cwd');
const resolvedPath1 = fromCWD('my-folder/my.file');
// or
const resolvedPath2 = fromCWD('my-folder/', 'my.file');
```