Skip to content

moander/node-jsdecorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

npm install --save jsdecorators

Usage

import * as jsd from 'jsdecorators';

class Test {
  @jsd.restorecwd
  doSomeWork() { 
    
  }

  @jsd.deprecate('Use doSomeWork instead')
  doSomeOtherThing() { 
    
  }
}

Decorators

See core-decorators for more information about the bundled core decorators.

restorecwd

Wraps the target in a try/finally and restores process.cwd() to the value it had before the target was invoked.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published