# node-pathname

> Node.js implementation of Ruby's Pathname

Latest version **0.2.0** (published 2017-06-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-pathname
pnpm add node-pathname
yarn add node-pathname
bun add node-pathname
```

## 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.2.0 |
| Published | 2017-06-06 |
| First published | 2017-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kanon Kakuno |
| Maintainers | yadex205 |
| Keywords | pathname |

## Links

- npm: https://www.npmjs.com/package/node-pathname
- Repository: https://github.com/yadex205/node-pathname
- Homepage: https://github.com/yadex205/node-pathname#readme
- Issues: https://github.com/yadex205/node-pathname/issues
- npm.io page: https://npm.io/package/node-pathname

## Dependencies (1)

- [glob](https://npm.io/package/glob.md) ^7.1.2

## 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.2.0 (latest) — 2017-06-06
- 0.1.1 — 2017-06-02

## README

node-pathname
=============

[![CircleCI](https://circleci.com/gh/yadex205/node-pathname.svg?style=shield)](https://circleci.com/gh/yadex205/node-pathname)

Node.js implementation of Ruby's Pathname.

Usage
-----

Install with npm

```bash
$ npm install --save node-pathname
```

```js
const Pathname = require('node-pathname')

const NODE_ROOT = new Pathname('.')
let packageJson = NODE_ROOT.join('package.json')
console.log(packageJson.expandPath().toString()) // => /path/to/current/directory/package.json
```

Requirements
------------

* Node.js >= 4.0.0


License
-------

The code is licensed under the MIT License.
See `LICENSE` file for details.

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