summaryrefslogtreecommitdiff
path: root/node_modules/log-symbols
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-21 16:52:28 +0100
committerMinteck <contact@minteck.org>2021-12-21 16:52:28 +0100
commit46e43f4bde4a35785b4997b81e86cd19f046b69b (patch)
treec53c2f826f777f9d6b2d249dab556feb72a6c3a6 /node_modules/log-symbols
downloadlangdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.gz
langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.tar.bz2
langdetect-46e43f4bde4a35785b4997b81e86cd19f046b69b.zip
Commit
Diffstat (limited to 'node_modules/log-symbols')
-rw-r--r--node_modules/log-symbols/browser.js8
-rw-r--r--node_modules/log-symbols/index.d.ts25
-rw-r--r--node_modules/log-symbols/index.js20
-rw-r--r--node_modules/log-symbols/license9
-rw-r--r--node_modules/log-symbols/package.json82
-rw-r--r--node_modules/log-symbols/readme.md51
6 files changed, 195 insertions, 0 deletions
diff --git a/node_modules/log-symbols/browser.js b/node_modules/log-symbols/browser.js
new file mode 100644
index 0000000..a66f8ec
--- /dev/null
+++ b/node_modules/log-symbols/browser.js
@@ -0,0 +1,8 @@
+'use strict';
+
+module.exports = {
+ info: 'ℹ️',
+ success: '✅',
+ warning: '⚠️',
+ error: '❌️'
+};
diff --git a/node_modules/log-symbols/index.d.ts b/node_modules/log-symbols/index.d.ts
new file mode 100644
index 0000000..4d3b7d1
--- /dev/null
+++ b/node_modules/log-symbols/index.d.ts
@@ -0,0 +1,25 @@
+/**
+Colored symbols for various log levels.
+
+Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
+
+@example
+```
+import logSymbols = require('log-symbols');
+
+console.log(logSymbols.success, 'Finished successfully!');
+// On good OSes: ✔ Finished successfully!
+// On Windows: √ Finished successfully!
+```
+*/
+declare const logSymbols: {
+ readonly info: string;
+
+ readonly success: string;
+
+ readonly warning: string;
+
+ readonly error: string;
+};
+
+export = logSymbols;
diff --git a/node_modules/log-symbols/index.js b/node_modules/log-symbols/index.js
new file mode 100644
index 0000000..247bb59
--- /dev/null
+++ b/node_modules/log-symbols/index.js
@@ -0,0 +1,20 @@
+'use strict';
+const chalk = require('chalk');
+
+const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color';
+
+const main = {
+ info: chalk.blue('ℹ'),
+ success: chalk.green('✔'),
+ warning: chalk.yellow('⚠'),
+ error: chalk.red('✖')
+};
+
+const fallbacks = {
+ info: chalk.blue('i'),
+ success: chalk.green('√'),
+ warning: chalk.yellow('‼'),
+ error: chalk.red('×')
+};
+
+module.exports = isSupported ? main : fallbacks;
diff --git a/node_modules/log-symbols/license b/node_modules/log-symbols/license
new file mode 100644
index 0000000..fa7ceba
--- /dev/null
+++ b/node_modules/log-symbols/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
diff --git a/node_modules/log-symbols/package.json b/node_modules/log-symbols/package.json
new file mode 100644
index 0000000..ec3308d
--- /dev/null
+++ b/node_modules/log-symbols/package.json
@@ -0,0 +1,82 @@
+{
+ "_from": "log-symbols@^4.0.0",
+ "_id": "log-symbols@4.0.0",
+ "_inBundle": false,
+ "_integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==",
+ "_location": "/log-symbols",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "log-symbols@^4.0.0",
+ "name": "log-symbols",
+ "escapedName": "log-symbols",
+ "rawSpec": "^4.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^4.0.0"
+ },
+ "_requiredBy": [
+ "/ora"
+ ],
+ "_resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz",
+ "_shasum": "69b3cc46d20f448eccdb75ea1fa733d9e821c920",
+ "_spec": "log-symbols@^4.0.0",
+ "_where": "/mnt/n/Projets/langdetect/node_modules/ora",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "https://sindresorhus.com"
+ },
+ "browser": "browser.js",
+ "bugs": {
+ "url": "https://github.com/sindresorhus/log-symbols/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "chalk": "^4.0.0"
+ },
+ "deprecated": false,
+ "description": "Colored symbols for various log levels. Example: `✔︎ Success`",
+ "devDependencies": {
+ "ava": "^3.7.1",
+ "strip-ansi": "^6.0.0",
+ "tsd": "^0.11.0",
+ "xo": "^0.30.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "files": [
+ "index.js",
+ "index.d.ts",
+ "browser.js"
+ ],
+ "homepage": "https://github.com/sindresorhus/log-symbols#readme",
+ "keywords": [
+ "unicode",
+ "cli",
+ "cmd",
+ "command-line",
+ "characters",
+ "symbol",
+ "symbols",
+ "figure",
+ "figures",
+ "fallback",
+ "windows",
+ "log",
+ "logging",
+ "terminal",
+ "stdout"
+ ],
+ "license": "MIT",
+ "name": "log-symbols",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/log-symbols.git"
+ },
+ "scripts": {
+ "test": "xo && ava && tsd"
+ },
+ "version": "4.0.0"
+}
diff --git a/node_modules/log-symbols/readme.md b/node_modules/log-symbols/readme.md
new file mode 100644
index 0000000..9c34cc8
--- /dev/null
+++ b/node_modules/log-symbols/readme.md
@@ -0,0 +1,51 @@
+# log-symbols [![Build Status](https://travis-ci.com/sindresorhus/log-symbols.svg?branch=master)](https://travis-ci.com/sindresorhus/log-symbols)
+
+<img src="screenshot.png" width="226" height="192" align="right">
+
+> Colored symbols for various log levels
+
+Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
+
+## Install
+
+```
+$ npm install log-symbols
+```
+
+## Usage
+
+```js
+const logSymbols = require('log-symbols');
+
+console.log(logSymbols.success, 'Finished successfully!');
+// On good OSes: ✔ Finished successfully!
+// On Windows: √ Finished successfully!
+```
+
+## API
+
+### logSymbols
+
+#### info
+#### success
+#### warning
+#### error
+
+## Related
+
+- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows CMD fallbacks
+- [py-log-symbols](https://github.com/ManrajGrover/py-log-symbols) - Python port
+- [log-symbols](https://github.com/palash25/log-symbols) - Ruby port
+- [guumaster/logsymbols](https://github.com/guumaster/logsymbols) - Golang port
+
+---
+
+<div align="center">
+ <b>
+ <a href="https://tidelift.com/subscription/pkg/npm-log-symbols?utm_source=npm-log-symbols&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
+ </b>
+ <br>
+ <sub>
+ Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
+ </sub>
+</div>