🚀 Launch Week Day 3:Introducing Supply Chain Attack Campaigns Tracking.Learn More →
Socket
Book a DemoInstallSign in
Socket

cwdify

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cwdify

Replace the cwd in an absolute path with the Bash equivalent: `~+`. Like untildify, but for cwd instead of userhome.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

cwdify NPM version

Replace the cwd in an absolute path with the Bash equivalent: ~+. Like untildify, but for cwd instead of userhome.

Install with npm

npm i cwdify --save

Usage

var cwdify = require('cwdify');

cwdify('/Users/jonschlinkert/dev/cwdify/foo/bar');
//=> '~+/foo/bar'
  • expand-tilde to expand tilde paths and cwd paths to absolute paths.
  • tildify to replace the user home in an absolute path with a tilde path.
  • untildify for the reverse of tildify.

Run tests

Install dev dependencies:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license

This file was generated by verb on January 20, 2015.

Keywords

cwd

FAQs

Package last updated on 20 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts