%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/specpages-backup/node_modules/tildify/
Upload File :
Create Path :
Current File : //www/specpages-backup/node_modules/tildify/index.js

'use strict';
const path = require('path');
const os = require('os');

const homeDirectory = os.homedir();

module.exports = absolutePath => {
	const normalizedPath = path.normalize(absolutePath) + path.sep;

	return (normalizedPath.indexOf(homeDirectory) === 0 ?
		normalizedPath.replace(homeDirectory + path.sep, `~${path.sep}`) :
		normalizedPath).slice(0, -1);
};

Zerion Mini Shell 1.0