diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/fancy-log | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) | |
download | wallet-core-cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585.tar.xz |
remove node_modules
Diffstat (limited to 'node_modules/fancy-log')
-rw-r--r-- | node_modules/fancy-log/LICENSE | 23 | ||||
-rw-r--r-- | node_modules/fancy-log/README.md | 51 | ||||
-rw-r--r-- | node_modules/fancy-log/index.js | 72 | ||||
-rw-r--r-- | node_modules/fancy-log/package.json | 43 |
4 files changed, 0 insertions, 189 deletions
diff --git a/node_modules/fancy-log/LICENSE b/node_modules/fancy-log/LICENSE deleted file mode 100644 index 790981418..000000000 --- a/node_modules/fancy-log/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Blaine Bublitz <blaine.bublitz@gmail.com> -Based on gulp-util, copyright 2014 Fractal <contact@wearefractal.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/fancy-log/README.md b/node_modules/fancy-log/README.md deleted file mode 100644 index dfd3a9443..000000000 --- a/node_modules/fancy-log/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# fancy-log - -[![Travis Build Status](https://img.shields.io/travis/js-cli/fancy-log.svg?branch=master&label=travis&style=flat-square)](https://travis-ci.org/js-cli/fancy-log) - -Log things, prefixed with a timestamp - -__This module was pulled out of gulp-util for use inside the CLI__ - -## Usage - -```js -var log = require('fancy-log'); - -log('a message'); -// [16:27:02] a message - -log.error('oh no!'); -// [16:27:02] oh no! -``` - -## API - -### `log(msg...)` - -Logs the message as if you called `console.log` but prefixes the output with the -current time in HH:MM:ss format. - -### `log.error(msg...)` - -Logs the message as if you called `console.error` but prefixes the output with the -current time in HH:MM:ss format. - -### `log.warn(msg...)` - -Logs the message as if you called `console.warn` but prefixes the output with the -current time in HH:MM:ss format. - - -### `log.info(msg...)` - -Logs the message as if you called `console.info` but prefixes the output with the -current time in HH:MM:ss format. - -### `log.dir(msg...)` - -Logs the message as if you called `console.dir` but prefixes the output with the -current time in HH:MM:ss format. - -## License - -MIT diff --git a/node_modules/fancy-log/index.js b/node_modules/fancy-log/index.js deleted file mode 100644 index c78eb45c8..000000000 --- a/node_modules/fancy-log/index.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; -/* - Initial code from https://github.com/gulpjs/gulp-util/blob/v3.0.6/lib/log.js - */ -var gray = require('ansi-gray'); -var timestamp = require('time-stamp'); -var supportsColor = require('color-support'); - -function hasFlag(flag) { - return (process.argv.indexOf('--' + flag) !== -1); -} - -function addColor(str) { - if (hasFlag('no-color')) { - return str; - } - - if (hasFlag('color')) { - return gray(str); - } - - if (supportsColor()) { - return gray(str); - } - - return str; -} - -function getTimestamp(){ - return '['+addColor(timestamp('HH:mm:ss'))+']'; -} - -function log(){ - var time = getTimestamp(); - process.stdout.write(time + ' '); - console.log.apply(console, arguments); - return this; -} - -function info(){ - var time = getTimestamp(); - process.stdout.write(time + ' '); - console.info.apply(console, arguments); - return this; -} - -function dir(){ - var time = getTimestamp(); - process.stdout.write(time + ' '); - console.dir.apply(console, arguments); - return this; -} - -function warn(){ - var time = getTimestamp(); - process.stderr.write(time + ' '); - console.warn.apply(console, arguments); - return this; -} - -function error(){ - var time = getTimestamp(); - process.stderr.write(time + ' '); - console.error.apply(console, arguments); - return this; -} - -module.exports = log; -module.exports.info = info; -module.exports.dir = dir; -module.exports.warn = warn; -module.exports.error = error; diff --git a/node_modules/fancy-log/package.json b/node_modules/fancy-log/package.json deleted file mode 100644 index eefb66996..000000000 --- a/node_modules/fancy-log/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "fancy-log", - "version": "1.3.2", - "description": "Log things, prefixed with a timestamp", - "author": "Blaine Bublitz <blaine.bublitz@gmail.com>", - "contributors": [ - "Aman Mittal (http://amandeepmittal.github.io/)" - ], - "repository": "js-cli/fancy-log", - "license": "MIT", - "engines": { - "node": ">= 0.10" - }, - "main": "index.js", - "files": [ - "LICENSE", - "index.js" - ], - "scripts": { - "test": "lab -cvL test.js" - }, - "dependencies": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "time-stamp": "^1.0.0" - }, - "devDependencies": { - "@phated/eslint-config-iceddev": "^0.2.1", - "code": "^1.5.0", - "eslint": "^1.3.1", - "eslint-plugin-mocha": "^0.5.1", - "eslint-plugin-react": "^3.3.1", - "lab": "^5.16.0" - }, - "keywords": [ - "console.log", - "log", - "logger", - "logging", - "pretty", - "timestamp" - ] -} |