index.js 125 Bytes Raw Blame History Permalink 1 2 3 4 5 6 'use strict'; var userHome = require('user-home'); module.exports = function (str) { return str.replace(userHome, '~'); };