mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 05:10:05 +02:00
initial commit
This commit is contained in:
12
app/node_modules/home-path/.travis.yml
generated
vendored
Normal file
12
app/node_modules/home-path/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 10
|
||||
- 9
|
||||
- 8
|
||||
- 7
|
||||
- 6
|
||||
- 5
|
||||
- 4
|
||||
- iojs
|
||||
- '0.12'
|
||||
- '0.10'
|
21
app/node_modules/home-path/LICENSE
generated
vendored
Normal file
21
app/node_modules/home-path/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-18 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.
|
11
app/node_modules/home-path/README.hbs
generated
vendored
Normal file
11
app/node_modules/home-path/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-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
43
app/node_modules/home-path/README.md
generated
vendored
Normal file
43
app/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-18 Lloyd Brookes \<75pound@gmail.com\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).
|
42
app/node_modules/home-path/index.js
generated
vendored
Normal file
42
app/node_modules/home-path/index.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
|
||||
}
|
||||
}
|
57
app/node_modules/home-path/package.json
generated
vendored
Normal file
57
app/node_modules/home-path/package.json
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"_from": "home-path@^1.0.1",
|
||||
"_id": "home-path@1.0.6",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-wo+yjrdAtoXt43Vy92a+0IPCYViiyLAHyp0QVS4xL/tfvVz5sXIW1ubLZk3nhVkD92fQpUMKX+fzMjr5F489vw==",
|
||||
"_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.6.tgz",
|
||||
"_shasum": "d549dc2465388a7f8667242c5b31588d29af29fc",
|
||||
"_spec": "home-path@^1.0.1",
|
||||
"_where": "E:\\projects\\p\\gitlit\\app\\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": "^4.0.1",
|
||||
"tape": "^4.9"
|
||||
},
|
||||
"homepage": "https://github.com/75lb/home-path#readme",
|
||||
"keywords": [
|
||||
"home",
|
||||
"directory",
|
||||
"folder",
|
||||
"path"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "home-path",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/75lb/home-path.git"
|
||||
},
|
||||
"scripts": {
|
||||
"docs": "jsdoc2md --heading-depth 1 -t README.hbs index.js > README.md; echo",
|
||||
"test": "tape test.js"
|
||||
},
|
||||
"version": "1.0.6"
|
||||
}
|
7
app/node_modules/home-path/test.js
generated
vendored
Normal file
7
app/node_modules/home-path/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