summaryrefslogtreecommitdiff
path: root/node_modules/home-path
diff options
context:
space:
mode:
authorArman Shah <[email protected]>2018-02-19 23:50:04 -0800
committerArman Shah <[email protected]>2018-02-19 23:50:04 -0800
commitae34dcfd3823a609ba7182f2d6eda593be876f7d (patch)
treeb9d7f2884c4999349418cbdc4f9ab46d113e0afd /node_modules/home-path
parentInitial commit (diff)
downloadlauncher-ae34dcfd3823a609ba7182f2d6eda593be876f7d.tar.xz
launcher-ae34dcfd3823a609ba7182f2d6eda593be876f7d.zip
add base files
Diffstat (limited to 'node_modules/home-path')
-rw-r--r--node_modules/home-path/.npmignore2
-rw-r--r--node_modules/home-path/.travis.yml9
-rw-r--r--node_modules/home-path/LICENSE21
-rw-r--r--node_modules/home-path/README.md43
-rw-r--r--node_modules/home-path/jsdoc2md/README.hbs11
-rw-r--r--node_modules/home-path/lib/home-path.js42
-rw-r--r--node_modules/home-path/package.json58
-rw-r--r--node_modules/home-path/test/test.js7
8 files changed, 193 insertions, 0 deletions
diff --git a/node_modules/home-path/.npmignore b/node_modules/home-path/.npmignore
new file mode 100644
index 0000000..713862c
--- /dev/null
+++ b/node_modules/home-path/.npmignore
@@ -0,0 +1,2 @@
+tmp
+out
diff --git a/node_modules/home-path/.travis.yml b/node_modules/home-path/.travis.yml
new file mode 100644
index 0000000..dd1dde1
--- /dev/null
+++ b/node_modules/home-path/.travis.yml
@@ -0,0 +1,9 @@
+language: node_js
+node_js:
+ - 7
+ - 6
+ - '5'
+ - '4'
+ - 'iojs'
+ - '0.12'
+ - '0.10'
diff --git a/node_modules/home-path/LICENSE b/node_modules/home-path/LICENSE
new file mode 100644
index 0000000..a8f6b97
--- /dev/null
+++ b/node_modules/home-path/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-17 Lloyd Brookes <[email protected]>
+
+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-path/README.md b/node_modules/home-path/README.md
new file mode 100644
index 0000000..71282d0
--- /dev/null
+++ b/node_modules/home-path/README.md
@@ -0,0 +1,43 @@
+[![view on npm](http://img.shields.io/npm/v/home-path.svg)](https://www.npmjs.org/package/home-path)
+[![npm module downloads](http://img.shields.io/npm/dt/home-path.svg)](https://www.npmjs.org/package/home-path)
+[![Build Status](https://travis-ci.org/75lb/home-path.svg?branch=master)](https://travis-ci.org/75lb/home-path)
+[![Dependency Status](https://david-dm.org/75lb/home-path.svg)](https://david-dm.org/75lb/home-path)
+[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
+
+<a name="module_home-path"></a>
+
+# home-path
+Cross-platform home directory retriever, tested on Windows XP and above, Mac OSX and Linux.
+
+With node versions 2.3.0 (iojs) or higher, the built-in [`os.homedir`](https://nodejs.org/api/os.html#os_os_homedir) method is used.
+
+**Example**
+```js
+var getHomePath = require('home-path')
+```
+<a name="exp_module_home-path--getHomePath"></a>
+
+## getHomePath() ⏏
+**Kind**: Exported function
+**Example**
+Mac OSX
+```js
+> getHomePath()
+'/Users/Lloyd'
+```
+
+Ubuntu Linux
+```js
+> getHomePath()
+'/home/lloyd'
+```
+
+Windows 8.1
+```js
+> getHomePath()
+'C:\\Users\\Lloyd'
+```
+
+* * *
+
+&copy; 2015-17 Lloyd Brookes \<[email protected]\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
diff --git a/node_modules/home-path/jsdoc2md/README.hbs b/node_modules/home-path/jsdoc2md/README.hbs
new file mode 100644
index 0000000..67dff42
--- /dev/null
+++ b/node_modules/home-path/jsdoc2md/README.hbs
@@ -0,0 +1,11 @@
+[![view on npm](http://img.shields.io/npm/v/home-path.svg)](https://www.npmjs.org/package/home-path)
+[![npm module downloads](http://img.shields.io/npm/dt/home-path.svg)](https://www.npmjs.org/package/home-path)
+[![Build Status](https://travis-ci.org/75lb/home-path.svg?branch=master)](https://travis-ci.org/75lb/home-path)
+[![Dependency Status](https://david-dm.org/75lb/home-path.svg)](https://david-dm.org/75lb/home-path)
+[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)
+
+{{>main}}
+
+* * *
+
+&copy; 2015-17 Lloyd Brookes \<[email protected]\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
diff --git a/node_modules/home-path/lib/home-path.js b/node_modules/home-path/lib/home-path.js
new file mode 100644
index 0000000..bff9e98
--- /dev/null
+++ b/node_modules/home-path/lib/home-path.js
@@ -0,0 +1,42 @@
+'use strict'
+var os = require('os')
+
+/**
+* Cross-platform home directory retriever, tested on Windows XP and above, Mac OSX and Linux.
+*
+* With node versions 2.3.0 (iojs) or higher, the built-in [`os.homedir`](https://nodejs.org/api/os.html#os_os_homedir) method is used.
+*
+* @module home-path
+* @example
+* var getHomePath = require('home-path')
+*/
+module.exports = os.homedir ? os.homedir : getHomePath
+
+/**
+* @alias module:home-path
+* @example
+* Mac OSX
+* ```js
+* > getHomePath()
+* '/Users/Lloyd'
+* ```
+*
+* Ubuntu Linux
+* ```js
+* > getHomePath()
+* '/home/lloyd'
+* ```
+*
+* Windows 8.1
+* ```js
+* > getHomePath()
+* 'C:\\Users\\Lloyd'
+* ```
+*/
+function getHomePath () {
+ if (process.platform === 'win32') {
+ return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || process.env.HOME
+ } else {
+ return process.env.HOME
+ }
+}
diff --git a/node_modules/home-path/package.json b/node_modules/home-path/package.json
new file mode 100644
index 0000000..5a572bd
--- /dev/null
+++ b/node_modules/home-path/package.json
@@ -0,0 +1,58 @@
+{
+ "_from": "home-path@^1.0.1",
+ "_id": "[email protected]",
+ "_inBundle": false,
+ "_integrity": "sha1-eIspgVsS1Tus9XVkhHbm+QQdEz8=",
+ "_location": "/home-path",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "home-path@^1.0.1",
+ "name": "home-path",
+ "escapedName": "home-path",
+ "rawSpec": "^1.0.1",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.1"
+ },
+ "_requiredBy": [
+ "/electron-download"
+ ],
+ "_resolved": "https://registry.npmjs.org/home-path/-/home-path-1.0.5.tgz",
+ "_shasum": "788b29815b12d53bacf575648476e6f9041d133f",
+ "_spec": "home-path@^1.0.1",
+ "_where": "/Users/armanshah/Desktop/node-projects/shopping-list/node_modules/electron-download",
+ "author": {
+ "name": "Lloyd Brookes",
+ "email": "[email protected]"
+ },
+ "bugs": {
+ "url": "https://github.com/75lb/home-path/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Cross-platform home directory retriever",
+ "devDependencies": {
+ "jsdoc-to-markdown": "^3.0.0",
+ "tape": "^4.6"
+ },
+ "homepage": "https://github.com/75lb/home-path#readme",
+ "keywords": [
+ "home",
+ "directory",
+ "folder",
+ "path"
+ ],
+ "license": "MIT",
+ "main": "./lib/home-path.js",
+ "name": "home-path",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/75lb/home-path.git"
+ },
+ "scripts": {
+ "docs": "jsdoc2md --heading-depth 1 -t jsdoc2md/README.hbs lib/*.js > README.md; echo",
+ "test": "tape test/*.js"
+ },
+ "version": "1.0.5"
+}
diff --git a/node_modules/home-path/test/test.js b/node_modules/home-path/test/test.js
new file mode 100644
index 0000000..a484c07
--- /dev/null
+++ b/node_modules/home-path/test/test.js
@@ -0,0 +1,7 @@
+var test = require('tape')
+var getHomePath = require('../')
+
+test('returns string', function (t) {
+ t.equal(typeof getHomePath(), 'string')
+ t.end()
+})