Replace the cwd in an absolute path with the Bash equivalent:
~+. Like untildify, but for cwd instead of userhome.
npm i cwdify --save
var cwdify = require('cwdify');
cwdify('/Users/jonschlinkert/dev/cwdify/foo/bar');
//=> '~+/foo/bar'
Install dev dependencies:
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on January 20, 2015.