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

debug-util

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debug-util - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "debug-util",
"version": "0.1.0",
"version": "0.1.1",
"description": "Some debug utility for both server-side and client-side javascript.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/georgeosddev/debugUtil",

@@ -8,8 +8,11 @@ # debugUtil

```bash
npm install --save debugUtil
npm install --save debug-util
```
and
```javascript
var debugUtil = require('debugUtil');
var debugUtil = require('debug-util');
```
### Client Side

@@ -26,2 +29,3 @@

### getColorLogger(name,level,color)
```javascript

@@ -31,4 +35,6 @@ logger = debugUtil.getColorLogger("myLogger","info","cyan");

```
e.g.
this code will display like this
```javascript

@@ -43,7 +49,5 @@ defaultLogger = debugUtil.getColorLogger();

defaultLogger.trace("This line is 'trace' level and color is 'white'");
//Set Name and Level
appLogger = debugUtil.getColorLogger("App","info");
appLogger.log("This line is 'info' level and color is 'default' and appender name is 'App'");
//Set Name, Level and Color

@@ -53,5 +57,7 @@ sysLogger = debugUtil.getColorLogger("Sys","warn","magenta");

```
![Screen Shot](https://raw.github.com/georgeOsdDev/debugUtil/master/ScreenShot.png)
### loggingWrap(context,function)
```javascript

@@ -64,3 +70,5 @@ function sum(a,b){

```
in your console
```

@@ -72,6 +80,9 @@ Start sum

```
### debugToScreen(String) *client side only
```javascript
debugUtil.debugToScreen("message");
```
message will append to `document.body` and will hide on click.

@@ -82,3 +93,4 @@

## License
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/)
<br/>Copyright &copy; 2012 [Takeharu.Oshida](http://georgeosddev.github.com)
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