mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 04:26:00 +00:00
opus
This commit is contained in:
24
node_modules/os-homedir/index.js
generated
vendored
Normal file
24
node_modules/os-homedir/index.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
var os = require('os');
|
||||
|
||||
function homedir() {
|
||||
var env = process.env;
|
||||
var home = env.HOME;
|
||||
var user = env.LOGNAME || env.USER || env.LNAME || env.USERNAME;
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
return env.USERPROFILE || env.HOMEDRIVE + env.HOMEPATH || home || null;
|
||||
}
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
return home || (user ? '/Users/' + user : null);
|
||||
}
|
||||
|
||||
if (process.platform === 'linux') {
|
||||
return home || (process.getuid() === 0 ? '/root' : (user ? '/home/' + user : null));
|
||||
}
|
||||
|
||||
return home || null;
|
||||
}
|
||||
|
||||
module.exports = typeof os.homedir === 'function' ? os.homedir : homedir;
|
21
node_modules/os-homedir/license
generated
vendored
Normal file
21
node_modules/os-homedir/license
generated
vendored
Normal file
@ -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.
|
73
node_modules/os-homedir/package.json
generated
vendored
Normal file
73
node_modules/os-homedir/package.json
generated
vendored
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"_from": "os-homedir@^1.0.0",
|
||||
"_id": "os-homedir@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
|
||||
"_location": "/os-homedir",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "os-homedir@^1.0.0",
|
||||
"name": "os-homedir",
|
||||
"escapedName": "os-homedir",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/osenv"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
|
||||
"_shasum": "ffbc4988336e0e833de0c168c7ef152121aa7fb3",
|
||||
"_spec": "os-homedir@^1.0.0",
|
||||
"_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix-V3\\node_modules\\osenv",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/os-homedir/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Node.js 4 `os.homedir()` ponyfill",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"path-exists": "^2.0.0",
|
||||
"xo": "^0.16.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/os-homedir#readme",
|
||||
"keywords": [
|
||||
"builtin",
|
||||
"core",
|
||||
"ponyfill",
|
||||
"polyfill",
|
||||
"shim",
|
||||
"os",
|
||||
"homedir",
|
||||
"home",
|
||||
"dir",
|
||||
"directory",
|
||||
"folder",
|
||||
"user",
|
||||
"path"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "os-homedir",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/os-homedir.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
31
node_modules/os-homedir/readme.md
generated
vendored
Normal file
31
node_modules/os-homedir/readme.md
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
# os-homedir [](https://travis-ci.org/sindresorhus/os-homedir)
|
||||
|
||||
> Node.js 4 [`os.homedir()`](https://nodejs.org/api/os.html#os_os_homedir) [ponyfill](https://ponyfill.com)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save os-homedir
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const osHomedir = require('os-homedir');
|
||||
|
||||
console.log(osHomedir());
|
||||
//=> '/Users/sindresorhus'
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [user-home](https://github.com/sindresorhus/user-home) - Same as this module but caches the result
|
||||
- [home-or-tmp](https://github.com/sindresorhus/home-or-tmp) - Get the user home directory with fallback to the system temp directory
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
Reference in New Issue
Block a user