node-pathname

0.2.0 • Public • Published

node-pathname

CircleCI

Node.js implementation of Ruby's Pathname.

Usage

Install with npm

$ npm install --save node-pathname
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.

Readme

Keywords

Package Sidebar

Install

npm i node-pathname

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • yadex205