# current-path-join

> Join the path with current directory.

Latest version **0.1.1** (published 2020-01-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install current-path-join
pnpm add current-path-join
yarn add current-path-join
bun add current-path-join
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-01-09 |
| First published | 2019-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | shadow |
| Maintainers | jinghua000 |
| Keywords | path, fs, join, __dirname |

## Links

- npm: https://www.npmjs.com/package/current-path-join
- Repository: https://github.com/jinghua000/current-path-join
- Issues: https://github.com/jinghua000/current-path-join/issues
- npm.io page: https://npm.io/package/current-path-join

## 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

- 0.1.1 (latest) — 2020-01-09
- 0.1.0 — 2019-11-20

## README

# current-path-join

[![Build Status](https://travis-ci.org/jinghua000/current-path-join.svg?branch=master)](https://travis-ci.org/jinghua000/current-path-join)
[![npm module](https://badge.fury.io/js/current-path-join.svg)](https://www.npmjs.com/package/current-path-join)

## Introduction

When i need to read some file or do something similar, i have to write like this

```js
const path = require('path')

path.join(__dirname, './path/to/something')
```

Oh, it's redundantly.

This tiny library make this scene a little simpler.

## Usage 

In Node Only.

```bash
npm i -D 'current-path-join'
```

```bash
yarn add -D 'current-path-join'
```

Then

```js
const join = require('current-path-join')

join('my', 'path', 'to', 'you')
// => {absolute}/my/path/to/you
```

Alright, it's that.

## Internal

```js
// src/index.js

module.exports = function (...paths) {
  return path.join(
    path.dirname(module.parent.filename),
    ...paths
  )
}
```

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