aboutsummaryrefslogtreecommitdiff
path: root/node_modules/user-home
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/user-home')
-rwxr-xr-xnode_modules/user-home/cli.js26
-rw-r--r--node_modules/user-home/index.js15
-rw-r--r--node_modules/user-home/license21
-rw-r--r--node_modules/user-home/package.json39
-rw-r--r--node_modules/user-home/readme.md42
5 files changed, 0 insertions, 143 deletions
diff --git a/node_modules/user-home/cli.js b/node_modules/user-home/cli.js
deleted file mode 100755
index bacbd2275..000000000
--- a/node_modules/user-home/cli.js
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-var pkg = require('./package.json');
-var userHome = require('./');
-
-function help() {
- console.log([
- pkg.description,
- '',
- 'Example',
- ' $ user-home',
- ' /Users/sindresorhus'
- ].join('\n'));
-}
-
-if (process.argv.indexOf('--help') !== -1) {
- help();
- return;
-}
-
-if (process.argv.indexOf('--version') !== -1) {
- console.log(pkg.version);
- return;
-}
-
-process.stdout.write(userHome);
diff --git a/node_modules/user-home/index.js b/node_modules/user-home/index.js
deleted file mode 100644
index d53b7939a..000000000
--- a/node_modules/user-home/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-var env = process.env;
-var home = env.HOME;
-var user = env.LOGNAME || env.USER || env.LNAME || env.USERNAME;
-
-if (process.platform === 'win32') {
- module.exports = env.USERPROFILE || env.HOMEDRIVE + env.HOMEPATH || home || null;
-} else if (process.platform === 'darwin') {
- module.exports = home || (user ? '/Users/' + user : null) || null;
-} else if (process.platform === 'linux') {
- module.exports = home ||
- (user ? (process.getuid() === 0 ? '/root' : '/home/' + user) : null) || null;
-} else {
- module.exports = home || null;
-}
diff --git a/node_modules/user-home/license b/node_modules/user-home/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/user-home/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/user-home/package.json b/node_modules/user-home/package.json
deleted file mode 100644
index 1bfc02e64..000000000
--- a/node_modules/user-home/package.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "user-home",
- "version": "1.1.1",
- "description": "Get the path to the user home directory",
- "license": "MIT",
- "repository": "sindresorhus/user-home",
- "bin": {
- "user-home": "cli.js"
- },
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "http://sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "node test.js"
- },
- "files": [
- "index.js",
- "cli.js"
- ],
- "keywords": [
- "cli",
- "bin",
- "user",
- "home",
- "homedir",
- "dir",
- "directory",
- "folder",
- "path"
- ],
- "devDependencies": {
- "ava": "0.0.3"
- }
-}
diff --git a/node_modules/user-home/readme.md b/node_modules/user-home/readme.md
deleted file mode 100644
index 5307a07ef..000000000
--- a/node_modules/user-home/readme.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# user-home [![Build Status](https://travis-ci.org/sindresorhus/user-home.svg?branch=master)](https://travis-ci.org/sindresorhus/user-home)
-
-> Get the path to the user home directory
-
-
-## Install
-
-```sh
-$ npm install --save user-home
-```
-
-
-## Usage
-
-```js
-var userHome = require('user-home');
-
-console.log(userHome);
-//=> /Users/sindresorhus
-```
-
-Returns `null` in the unlikely scenario that the home directory can't be found.
-
-
-## CLI
-
-```sh
-$ npm install --global user-home
-```
-
-```sh
-$ user-home --help
-
-Example
- $ user-home
- /Users/sindresorhus
-```
-
-
-## License
-
-MIT © [Sindre Sorhus](http://sindresorhus.com)