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

deborator

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deborator

a TypeScript decorator, to add console.log() to all methods and properties of a class.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
54
increased by671.43%
Maintainers
1
Weekly downloads
 
Created
Source

deborator readme

deborator (DEBug decORATOR) is a TypeScript decorator, to add console.log() to all methods and properties of a class.

if you find yourself writing a lot of console.log() entries during debugging, then deborator may save you some time!

This can be especially useful when regular debugging via breakpoints is not really practical

examples:

  • developing drag'n'drop features in a browser since browsers like Chrome tend not to exit the 'dragging' state, if they hit a breakpoint

  • developing real-time sites, when debugging via breakpoints is not practical

note: deborator should NOT be deployed to Production (as there may be performance/security impact because of the logging)

usage

import { deborator } from "./deborator";

@deborator
class MyClass {
    myMethod() {
        // ...
    }
}

running the demo app

dependencies

  • node [v6.10.3 is OK]
  • yarn [0.27.5 is OK]

setup

On a Windows box (Unix should be similar ...)

CD demo-app
install

running the app

run

license

MIT

Keywords

FAQs

Package last updated on 25 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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