aboutsummaryrefslogtreecommitdiff
path: root/node_modules/fancy-log
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/fancy-log
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/fancy-log')
-rw-r--r--node_modules/fancy-log/LICENSE23
-rw-r--r--node_modules/fancy-log/README.md35
-rw-r--r--node_modules/fancy-log/index.js27
-rw-r--r--node_modules/fancy-log/package.json111
4 files changed, 196 insertions, 0 deletions
diff --git a/node_modules/fancy-log/LICENSE b/node_modules/fancy-log/LICENSE
new file mode 100644
index 000000000..0dd44fbde
--- /dev/null
+++ b/node_modules/fancy-log/LICENSE
@@ -0,0 +1,23 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Blaine Bublitz
+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
new file mode 100644
index 000000000..f3d227d05
--- /dev/null
+++ b/node_modules/fancy-log/README.md
@@ -0,0 +1,35 @@
+# 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 ths message as if you called `console.error` 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
new file mode 100644
index 000000000..a9d972267
--- /dev/null
+++ b/node_modules/fancy-log/index.js
@@ -0,0 +1,27 @@
+'use strict';
+/*
+ Initial code from https://github.com/gulpjs/gulp-util/blob/v3.0.6/lib/log.js
+ */
+var chalk = require('chalk');
+var timestamp = require('time-stamp');
+
+function getTimestamp(){
+ return '['+chalk.grey(timestamp('HH:mm:ss'))+']';
+}
+
+function log(){
+ var time = getTimestamp();
+ process.stdout.write(time + ' ');
+ console.log.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.error = error;
diff --git a/node_modules/fancy-log/package.json b/node_modules/fancy-log/package.json
new file mode 100644
index 000000000..601ac65de
--- /dev/null
+++ b/node_modules/fancy-log/package.json
@@ -0,0 +1,111 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "fancy-log@^1.1.0",
+ "scope": null,
+ "escapedName": "fancy-log",
+ "name": "fancy-log",
+ "rawSpec": "^1.1.0",
+ "spec": ">=1.1.0 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/gulp-util"
+ ]
+ ],
+ "_from": "fancy-log@>=1.1.0 <2.0.0",
+ "_id": "fancy-log@1.2.0",
+ "_inCache": true,
+ "_location": "/fancy-log",
+ "_nodeVersion": "0.10.41",
+ "_npmOperationalInternal": {
+ "host": "packages-5-east.internal.npmjs.com",
+ "tmp": "tmp/fancy-log-1.2.0.tgz_1455044959547_0.6881773378700018"
+ },
+ "_npmUser": {
+ "name": "phated",
+ "email": "blaine@iceddev.com"
+ },
+ "_npmVersion": "2.14.14",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "fancy-log@^1.1.0",
+ "scope": null,
+ "escapedName": "fancy-log",
+ "name": "fancy-log",
+ "rawSpec": "^1.1.0",
+ "spec": ">=1.1.0 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/gulp-util"
+ ],
+ "_resolved": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.2.0.tgz",
+ "_shasum": "d5a51b53e9ab22ca07d558f2b67ae55fdb5fcbd8",
+ "_shrinkwrap": null,
+ "_spec": "fancy-log@^1.1.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/gulp-util",
+ "author": {
+ "name": "Blaine Bublitz",
+ "email": "blaine@iceddev.com",
+ "url": "http://iceddev.com"
+ },
+ "bugs": {
+ "url": "https://github.com/phated/fancy-log/issues"
+ },
+ "contributors": [],
+ "dependencies": {
+ "chalk": "^1.1.1",
+ "time-stamp": "^1.0.0"
+ },
+ "description": "Log things, prefixed with a timestamp",
+ "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"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "d5a51b53e9ab22ca07d558f2b67ae55fdb5fcbd8",
+ "tarball": "https://registry.npmjs.org/fancy-log/-/fancy-log-1.2.0.tgz"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ },
+ "files": [
+ "LICENSE",
+ "index.js"
+ ],
+ "gitHead": "349e046ea78834c5659beafd9a7c364ebd0ed221",
+ "homepage": "https://github.com/phated/fancy-log#readme",
+ "keywords": [
+ "console.log",
+ "log",
+ "logger",
+ "logging",
+ "pretty",
+ "timestamp"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "maintainers": [
+ {
+ "name": "phated",
+ "email": "blaine@iceddev.com"
+ }
+ ],
+ "name": "fancy-log",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/phated/fancy-log.git"
+ },
+ "scripts": {
+ "test": "lab -cvL test.js"
+ },
+ "version": "1.2.0"
+}