From 81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Wed, 18 Nov 2020 23:26:45 +0100 Subject: rm node_modules --- node_modules/expand-tilde/index.js | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 node_modules/expand-tilde/index.js (limited to 'node_modules/expand-tilde/index.js') diff --git a/node_modules/expand-tilde/index.js b/node_modules/expand-tilde/index.js deleted file mode 100644 index d4e4706..0000000 --- a/node_modules/expand-tilde/index.js +++ /dev/null @@ -1,22 +0,0 @@ -/*! - * expand-tilde - * - * Copyright (c) 2015 Jon Schlinkert. - * Licensed under the MIT license. - */ - -var homedir = require('homedir-polyfill'); -var path = require('path'); - -module.exports = function expandTilde(filepath) { - var home = homedir(); - - if (filepath.charCodeAt(0) === 126 /* ~ */) { - if (filepath.charCodeAt(1) === 43 /* + */) { - return path.join(process.cwd(), filepath.slice(2)); - } - return home ? path.join(home, filepath.slice(1)) : filepath; - } - - return filepath; -}; -- cgit v1.2.3