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

custom-log

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

custom-log - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

example.coffee

4

custom-log.js

@@ -35,3 +35,3 @@ // Generated by CoffeeScript 1.9.1

this.enabled = false;
return console.log('CUSTOM-LOG: .' + this.level + ' has been disabled.');
return console.log('CUSTOM-LOG: ' + this.level + ' has been disabled.');
};

@@ -41,3 +41,3 @@

this.enabled = true;
return console.log('CUSTOM-LOG: .' + this.level + ' is now enabled.');
return console.log('CUSTOM-LOG: ' + this.level + ' is now enabled.');
};

@@ -44,0 +44,0 @@

@@ -1,1 +0,1 @@

(function(){"use strict";var e,n=function(e,n){return function(){return e.apply(n,arguments)}};e=function(e){var t,i,o,l,s,r;t=function(){function e(e,t){var i,o;this.level=e!=null?e:"log";this.message=t!=null?t:"";this.enable=n(this.enable,this);this.disable=n(this.disable,this);this.enabled=true;this.log=function(e){return function(){var n;if(e.enabled){return console.log((n=e.message).concat.apply(n,arguments))}}}(this);for(i in this){o=this[i];if(this.hasOwnProperty(i)&&i!=="log"){this.log[i]=o}}}e.prototype.disable=function(){this.enabled=false;return console.log("CUSTOM-LOG: ."+this.level+" has been disabled.")};e.prototype.enable=function(){this.enabled=true;return console.log("CUSTOM-LOG: ."+this.level+" is now enabled.")};return e}();if(typeof e==="string"){r=e}l=new t("log",r).log;if(typeof e==="object"){i=function(e,n){if(e==="log"){return l.message=n}else{return l[e]=new t(e,n).log}};for(o in e){s=e[o];i(o,s)}}return l};if(typeof define!=="undefined"&&define!==null&&"function"===typeof define&&define.amd){define("customLog",[],function(){return e})}else if(typeof module!=="undefined"){module.exports=e}else if(typeof window!=="undefined"){window.customLog=e}}).call(this);
(function(){"use strict";var e,n=function(e,n){return function(){return e.apply(n,arguments)}};e=function(e){var t,o,i,l,s,u;if(t=function(){function e(e,t){var o,i;this.level=null!=e?e:"log",this.message=null!=t?t:"",this.enable=n(this.enable,this),this.disable=n(this.disable,this),this.enabled=!0,this.log=function(e){return function(){var n;return e.enabled?console.log((n=e.message).concat.apply(n,arguments)):void 0}}(this);for(o in this)i=this[o],this.hasOwnProperty(o)&&"log"!==o&&(this.log[o]=i)}return e.prototype.disable=function(){return this.enabled=!1,console.log("CUSTOM-LOG: "+this.level+" has been disabled.")},e.prototype.enable=function(){return this.enabled=!0,console.log("CUSTOM-LOG: "+this.level+" is now enabled.")},e}(),"string"==typeof e&&(u=e),l=new t("log",u).log,"object"==typeof e){o=function(e,n){return"log"===e?l.message=n:l[e]=new t(e,n).log};for(i in e)s=e[i],o(i,s)}return l},"undefined"!=typeof define&&null!==define&&"function"==typeof define&&define.amd?define("customLog",[],function(){return e}):"undefined"!=typeof module?module.exports=e:"undefined"!=typeof window&&(window.customLog=e)}).call(this);
{
"name": "custom-log",
"version": "0.1.0",
"version": "0.1.1",
"description": "A tiny flexible logger",

@@ -5,0 +5,0 @@ "main": "custom-log.min.js",

# custom-log
A tiny flexible logger
___
Very basic logger, simple and fast. Will add some features over time.
Manual: example.coffee.

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