aboutsummaryrefslogtreecommitdiff
path: root/node_modules/log-symbols
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-10-06 21:37:45 +0200
committerDimitri Staessens <dimitri@ouroboros.rocks>2019-10-06 21:37:45 +0200
commit3c51c3be85bb0d1bdb87ea0d6632f1c256912f27 (patch)
treec7ccc8279b12c4f7bdbbb4270d617e48f51722e4 /node_modules/log-symbols
parent412c104bebc507bea9c94fd53b5bdc4b64cbfe31 (diff)
downloadwebsite-3c51c3be85bb0d1bdb87ea0d6632f1c256912f27.tar.gz
website-3c51c3be85bb0d1bdb87ea0d6632f1c256912f27.zip
build: Add some required modules for node
Diffstat (limited to 'node_modules/log-symbols')
-rw-r--r--node_modules/log-symbols/browser.js7
-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.json86
-rw-r--r--node_modules/log-symbols/readme.md45
5 files changed, 167 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..b60dd38
--- /dev/null
+++ b/node_modules/log-symbols/browser.js
@@ -0,0 +1,7 @@
+'use strict';
+module.exports = {
+ info: 'ℹ️',
+ success: '✅',
+ warning: '⚠️',
+ error: '❌️'
+};
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..e7af2f7
--- /dev/null
+++ b/node_modules/log-symbols/license
@@ -0,0 +1,9 @@
+MIT License
+
+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.
diff --git a/node_modules/log-symbols/package.json b/node_modules/log-symbols/package.json
new file mode 100644
index 0000000..f7502d3
--- /dev/null
+++ b/node_modules/log-symbols/package.json
@@ -0,0 +1,86 @@
+{
+ "_args": [
+ [
+ "log-symbols@2.2.0",
+ "/home/dstaesse/git/website"
+ ]
+ ],
+ "_development": true,
+ "_from": "log-symbols@2.2.0",
+ "_id": "log-symbols@2.2.0",
+ "_inBundle": false,
+ "_integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==",
+ "_location": "/log-symbols",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "version",
+ "registry": true,
+ "raw": "log-symbols@2.2.0",
+ "name": "log-symbols",
+ "escapedName": "log-symbols",
+ "rawSpec": "2.2.0",
+ "saveSpec": null,
+ "fetchSpec": "2.2.0"
+ },
+ "_requiredBy": [
+ "/postcss-reporter"
+ ],
+ "_resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz",
+ "_spec": "2.2.0",
+ "_where": "/home/dstaesse/git/website",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "browser": "browser.js",
+ "bugs": {
+ "url": "https://github.com/sindresorhus/log-symbols/issues"
+ },
+ "dependencies": {
+ "chalk": "^2.0.1"
+ },
+ "description": "Colored symbols for various log levels. Example: ✔︎ Success",
+ "devDependencies": {
+ "ava": "*",
+ "strip-ansi": "^4.0.0",
+ "xo": "*"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "files": [
+ "index.js",
+ "browser.js"
+ ],
+ "homepage": "https://github.com/sindresorhus/log-symbols#readme",
+ "keywords": [
+ "unicode",
+ "cli",
+ "cmd",
+ "command-line",
+ "characters",
+ "char",
+ "symbol",
+ "symbols",
+ "figure",
+ "figures",
+ "fallback",
+ "win",
+ "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"
+ },
+ "version": "2.2.0"
+}
diff --git a/node_modules/log-symbols/readme.md b/node_modules/log-symbols/readme.md
new file mode 100644
index 0000000..8459a57
--- /dev/null
+++ b/node_modules/log-symbols/readme.md
@@ -0,0 +1,45 @@
+# log-symbols [![Build Status](https://travis-ci.org/sindresorhus/log-symbols.svg?branch=master)](https://travis-ci.org/sindresorhus/log-symbols)
+
+<img src="screenshot.png" width="226" 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
+
+
+## License
+
+MIT © [Sindre Sorhus](https://sindresorhus.com)