Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fancy-log

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fancy-log - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

24

index.js

@@ -19,2 +19,23 @@ 'use strict';

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(){

@@ -28,2 +49,5 @@ var time = getTimestamp();

module.exports = log;
module.exports.info = info;
module.exports.dir = dir;
module.exports.warn = warn;
module.exports.error = error;

10

package.json
{
"name": "fancy-log",
"version": "1.2.0",
"version": "1.3.0",
"description": "Log things, prefixed with a timestamp",
"author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com)",
"contributors": [],
"repository": "phated/fancy-log",
"author": "Blaine Bublitz <blaine.bublitz@gmail.com>",
"contributors": [
"Aman Mittal (http://amandeepmittal.github.io/)"
],
"repository": "js-cli/fancy-log",
"license": "MIT",

@@ -9,0 +11,0 @@ "engines": {

18

README.md

@@ -30,7 +30,23 @@ # fancy-log

Logs ths message as if you called `console.error` but prefixes the output with the
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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc