1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 01:16:00 +00:00
This commit is contained in:
MatteZ02
2020-03-04 13:43:21 +02:00
parent 79f8a18164
commit da84fcfed1
1292 changed files with 93623 additions and 35760 deletions

14
node_modules/has-unicode/LICENSE generated vendored Normal file
View File

@ -0,0 +1,14 @@
Copyright (c) 2014, Rebecca Turner <me@re-becca.org>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

43
node_modules/has-unicode/README.md generated vendored Normal file
View File

@ -0,0 +1,43 @@
has-unicode
===========
Try to guess if your terminal supports unicode
```javascript
var hasUnicode = require("has-unicode")
if (hasUnicode()) {
// the terminal probably has unicode support
}
```
```javascript
var hasUnicode = require("has-unicode").tryHarder
hasUnicode(function(unicodeSupported) {
if (unicodeSupported) {
// the terminal probably has unicode support
}
})
```
## Detecting Unicode
What we actually detect is UTF-8 support, as that's what Node itself supports.
If you have a UTF-16 locale then you won't be detected as unicode capable.
### Windows
Since at least Windows 7, `cmd` and `powershell` have been unicode capable,
but unfortunately even then it's not guaranteed. In many localizations it
still uses legacy code pages and there's no facility short of running
programs or linking C++ that will let us detect this. As such, we
report any Windows installation as NOT unicode capable, and recommend
that you encourage your users to override this via config.
### Unix Like Operating Systems
We look at the environment variables `LC_ALL`, `LC_CTYPE`, and `LANG` in
that order. For `LC_ALL` and `LANG`, it looks for `.UTF-8` in the value.
For `LC_CTYPE` it looks to see if the value is `UTF-8`. This is sufficient
for most POSIX systems. While locale data can be put in `/etc/locale.conf`
as well, AFAIK it's always copied into the environment.

16
node_modules/has-unicode/index.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
"use strict"
var os = require("os")
var hasUnicode = module.exports = function () {
// Recent Win32 platforms (>XP) CAN support unicode in the console but
// don't have to, and in non-english locales often use traditional local
// code pages. There's no way, short of windows system calls or execing
// the chcp command line program to figure this out. As such, we default
// this to false and encourage your users to override it via config if
// appropriate.
if (os.type() == "Windows_NT") { return false }
var isUTF8 = /UTF-?8$/i
var ctype = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG
return isUTF8.test(ctype)
}

58
node_modules/has-unicode/package.json generated vendored Normal file
View File

@ -0,0 +1,58 @@
{
"_from": "has-unicode@^2.0.0",
"_id": "has-unicode@2.0.1",
"_inBundle": false,
"_integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
"_location": "/has-unicode",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "has-unicode@^2.0.0",
"name": "has-unicode",
"escapedName": "has-unicode",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/gauge"
],
"_resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
"_shasum": "e0e6fe6a28cf51138855e086d1691e771de2a8b9",
"_spec": "has-unicode@^2.0.0",
"_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix-V3\\node_modules\\gauge",
"author": {
"name": "Rebecca Turner",
"email": "me@re-becca.org"
},
"bugs": {
"url": "https://github.com/iarna/has-unicode/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Try to guess if your terminal supports unicode",
"devDependencies": {
"require-inject": "^1.3.0",
"tap": "^2.3.1"
},
"files": [
"index.js"
],
"homepage": "https://github.com/iarna/has-unicode",
"keywords": [
"unicode",
"terminal"
],
"license": "ISC",
"main": "index.js",
"name": "has-unicode",
"repository": {
"type": "git",
"url": "git+https://github.com/iarna/has-unicode.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "2.0.1"
}