summaryrefslogtreecommitdiffstats
path: root/node_modules/home-or-tmp
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/home-or-tmp')
-rw-r--r--node_modules/home-or-tmp/index.js5
-rw-r--r--node_modules/home-or-tmp/license21
-rw-r--r--node_modules/home-or-tmp/package.json75
-rw-r--r--node_modules/home-or-tmp/readme.md32
4 files changed, 133 insertions, 0 deletions
diff --git a/node_modules/home-or-tmp/index.js b/node_modules/home-or-tmp/index.js
new file mode 100644
index 0000000..bb67e9b
--- /dev/null
+++ b/node_modules/home-or-tmp/index.js
@@ -0,0 +1,5 @@
+'use strict';
+var osHomedir = require('os-homedir');
+var osTmpdir = require('os-tmpdir');
+
+module.exports = osHomedir() || osTmpdir();
diff --git a/node_modules/home-or-tmp/license b/node_modules/home-or-tmp/license
new file mode 100644
index 0000000..654d0bf
--- /dev/null
+++ b/node_modules/home-or-tmp/license
@@ -0,0 +1,21 @@
+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/home-or-tmp/package.json b/node_modules/home-or-tmp/package.json
new file mode 100644
index 0000000..7e9dc98
--- /dev/null
+++ b/node_modules/home-or-tmp/package.json
@@ -0,0 +1,75 @@
+{
+ "_from": "home-or-tmp@^2.0.0",
+ "_id": "home-or-tmp@2.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=",
+ "_location": "/home-or-tmp",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "home-or-tmp@^2.0.0",
+ "name": "home-or-tmp",
+ "escapedName": "home-or-tmp",
+ "rawSpec": "^2.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.0"
+ },
+ "_requiredBy": [
+ "/babel-register"
+ ],
+ "_resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz",
+ "_shasum": "e36c3f2d2cae7d746a857e38d18d5f32a7882db8",
+ "_spec": "home-or-tmp@^2.0.0",
+ "_where": "/home/pruss/Dev/3-minute-website/node_modules/babel-register",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/home-or-tmp/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "os-homedir": "^1.0.0",
+ "os-tmpdir": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "Get the user home directory with fallback to the system temp directory",
+ "devDependencies": {
+ "ava": "0.0.4"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/sindresorhus/home-or-tmp#readme",
+ "keywords": [
+ "user",
+ "home",
+ "homedir",
+ "dir",
+ "directory",
+ "folder",
+ "path",
+ "tmp",
+ "temp",
+ "temporary",
+ "fallback",
+ "graceful",
+ "userprofile"
+ ],
+ "license": "MIT",
+ "name": "home-or-tmp",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/home-or-tmp.git"
+ },
+ "scripts": {
+ "test": "node test.js"
+ },
+ "version": "2.0.0"
+}
diff --git a/node_modules/home-or-tmp/readme.md b/node_modules/home-or-tmp/readme.md
new file mode 100644
index 0000000..13ca697
--- /dev/null
+++ b/node_modules/home-or-tmp/readme.md
@@ -0,0 +1,32 @@
+# home-or-tmp [![Build Status](https://travis-ci.org/sindresorhus/home-or-tmp.svg?branch=master)](https://travis-ci.org/sindresorhus/home-or-tmp)
+
+> Get the user home directory with fallback to the system temp directory
+
+Useful in cases where the home directory either isn't set or doesn't exist.
+
+
+## Install
+
+```
+$ npm install --save home-or-tmp
+```
+
+
+## Usage
+
+```js
+var homeOrTmp = require('home-or-tmp');
+
+console.log(homeOrTmp);
+//=> '/Users/sindresorhus'
+
+// and if there's no home directory:
+
+console.log(homeOrTmp);
+//=> '/var/folders/m3/5574nnhn0yj488ccryqr7tc80000gn/T'
+```
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)