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

simple-color-log

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-color-log - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js

@@ -22,7 +22,5 @@ var colors = require('colors');

var ret = {};
log.set
for (var method in methods) {
ret[method] = (function(method) {
log[method] = (function(method) {
return function () {

@@ -53,2 +51,2 @@ var d = new Date();

}
module.exports = ret;
module.exports = log;
{
"name": "simple-color-log",
"version": "1.0.1",
"version": "1.0.2",
"description": "This is a simple logging function, with colors and timestamps",

@@ -29,4 +29,5 @@ "main": "index.js",

"devDependencies": {
"sinon": "^1.17.6"
"mocha": "^3.2.0",
"sinon": "^1.17.7"
}
}

@@ -6,3 +6,3 @@ var sinon = require ('sinon');

describe ("All methods", function () {
it ("Provides all needed methods", function () {
it ("Provides all logging methods", function () {
assert.equal (typeof log.debug, "function");

@@ -12,3 +12,6 @@ assert.equal (typeof log.info, "function");

assert.equal (typeof log.none, "function");
})
});
it ("Also provides setLogLevel method", function () {
assert.equal(typeof(log.setLogLevel), 'function');
});
})
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