diff options
| author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 | 
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 | 
| commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
| tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/user-home | |
| parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) | |
remove node_modules
Diffstat (limited to 'node_modules/user-home')
| -rwxr-xr-x | node_modules/user-home/cli.js | 26 | ||||
| -rw-r--r-- | node_modules/user-home/index.js | 15 | ||||
| -rw-r--r-- | node_modules/user-home/license | 21 | ||||
| -rw-r--r-- | node_modules/user-home/package.json | 39 | ||||
| -rw-r--r-- | node_modules/user-home/readme.md | 42 | 
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 [](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) | 
