🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debugging-decorators

TypeScript useful debugging decorators

0.0.1
latest
Version published
Weekly downloads
1
-80%
Maintainers
1
Weekly downloads
 
Created

Typescript debugging decorators


function logger(message: string) {
  console.log(message);
}

class TestClass {
  @log({ logger: logger, pattern: '{className}.{methodName}: {arguments}' })
  myMethod(who: string) { }
}

(new TestClass).myMethod('Foo');

// => "TestClass.myMethod: Foo"

Keywords

FAQs

Package last updated on 12 Apr 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