# path-thunk

> Thunkified versions of popular `path` module functions.

Latest version **1.0.1** (published 2015-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install path-thunk
pnpm add path-thunk
yarn add path-thunk
bun add path-thunk
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-12-30 |
| First published | 2015-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Talmage |
| Maintainers | jamestalmage |
| Keywords | path, thunk |

## Links

- npm: https://www.npmjs.com/package/path-thunk
- Repository: https://github.com/jamestalmage/path-thunk
- Homepage: https://github.com/jamestalmage/path-thunk#readme
- Issues: https://github.com/jamestalmage/path-thunk/issues
- npm.io page: https://npm.io/package/path-thunk

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-12-30
- 1.0.0 — 2015-12-30

## README

# path-thunk [![Build Status](https://travis-ci.org/jamestalmage/path-thunk.svg?branch=master)](https://travis-ci.org/jamestalmage/path-thunk)

> Thunkified versions of popular `path` module functions.


## Install

```
$ npm install --save path-thunk
```


## Usage

```js
const pathThunk = require('path-thunk');

const thunk = pathThunk.join('path/to/some/dir');

thunk('foo', 'bar.js')
//=> equivalent to path.join('path/to/some/dir', 'foo', 'bar.js');
```


## API

### pathThunk.join([path1], [path2], ...)
### pathThunk.relative(from, to)
### pathThunk.resolve([from ...], to)

All functions accept partial input, and return thunks for the corresponding [`path` methods](https://nodejs.org/api/path.html#path_path_join_path1_path2).

### pathThunk.win32
### pathThunk.posix

*Node 0.12 and higher only*

Both have identical API's to `pathThunk`, but they always return `windows` or `posix` paths (respectively). This mirrors the [corresponding items](https://nodejs.org/api/path.html#path_path_win32) from the `path` module.

## License

MIT © [James Talmage](http://github.com/jamestalmage)

---
_Source: https://npm.io/package/path-thunk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
