Browse Source

Removed useless file

master
Leo Lamprecht 7 years ago
parent
commit
2f723a3c1b
  1. 18
      src/util/to-human-path.js

18
src/util/to-human-path.js

@ -1,18 +0,0 @@
// Native
const { resolve } = require('path')
const { homedir } = require('os')
// Cleaned-up `$HOME` (i.e.: no trailing slash)
const HOME = resolve(homedir())
/**
* Attempts to show the given path in
* a human-friendly form. For example,
* `/Users/rauchg/test.js` becomes `~/test.js`
*/
function toHumanPath(path) {
return path.replace(HOME, '~')
}
module.exports = toHumanPath
Loading…
Cancel
Save