--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
9
node_modules/tildify/index.js
generated
vendored
Normal file
9
node_modules/tildify/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
var path = require('path');
|
||||
var osHomedir = require('os-homedir');
|
||||
var home = osHomedir();
|
||||
|
||||
module.exports = function (str) {
|
||||
str = path.normalize(str) + path.sep;
|
||||
return (str.indexOf(home) === 0 ? str.replace(home + path.sep, '~' + path.sep) : str).slice(0, -1);
|
||||
};
|
||||
Loading…
Reference in a new issue