installed electron
This commit is contained in:
2
node_modules/home-path/.npmignore
generated
vendored
Normal file
2
node_modules/home-path/.npmignore
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
tmp
|
||||
out
|
||||
9
node_modules/home-path/.travis.yml
generated
vendored
Normal file
9
node_modules/home-path/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 7
|
||||
- 6
|
||||
- '5'
|
||||
- '4'
|
||||
- 'iojs'
|
||||
- '0.12'
|
||||
- '0.10'
|
||||
21
node_modules/home-path/LICENSE
generated
vendored
Normal file
21
node_modules/home-path/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-17 Lloyd Brookes <75pound@gmail.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.
|
||||
43
node_modules/home-path/README.md
generated
vendored
Normal file
43
node_modules/home-path/README.md
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
[](https://www.npmjs.org/package/home-path)
|
||||
[](https://www.npmjs.org/package/home-path)
|
||||
[](https://travis-ci.org/75lb/home-path)
|
||||
[](https://david-dm.org/75lb/home-path)
|
||||
[](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'
|
||||
```
|
||||
|
||||
* * *
|
||||
|
||||
© 2015-17 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
||||
11
node_modules/home-path/jsdoc2md/README.hbs
generated
vendored
Normal file
11
node_modules/home-path/jsdoc2md/README.hbs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
[](https://www.npmjs.org/package/home-path)
|
||||
[](https://www.npmjs.org/package/home-path)
|
||||
[](https://travis-ci.org/75lb/home-path)
|
||||
[](https://david-dm.org/75lb/home-path)
|
||||
[](https://github.com/feross/standard)
|
||||
|
||||
{{>main}}
|
||||
|
||||
* * *
|
||||
|
||||
© 2015-17 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
||||
42
node_modules/home-path/lib/home-path.js
generated
vendored
Normal file
42
node_modules/home-path/lib/home-path.js
generated
vendored
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
58
node_modules/home-path/package.json
generated
vendored
Normal file
58
node_modules/home-path/package.json
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"_from": "home-path@^1.0.1",
|
||||
"_id": "home-path@1.0.5",
|
||||
"_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": "C:\\Users\\Katy\\documentit\\node_modules\\electron-download",
|
||||
"author": {
|
||||
"name": "Lloyd Brookes",
|
||||
"email": "75pound@gmail.com"
|
||||
},
|
||||
"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"
|
||||
}
|
||||
7
node_modules/home-path/test/test.js
generated
vendored
Normal file
7
node_modules/home-path/test/test.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var test = require('tape')
|
||||
var getHomePath = require('../')
|
||||
|
||||
test('returns string', function (t) {
|
||||
t.equal(typeof getHomePath(), 'string')
|
||||
t.end()
|
||||
})
|
||||
Reference in New Issue
Block a user