publish-decorator
v0.0.4
Published
@publish decorator makes classes and/or methods accessible globally
Downloads
9
Maintainers
Readme
Overview :
@publish is a decorator that makes classes or/and methods accessible globally . It is useful for debugging in the client-side (browser) and it is valuable also in server-side (Node.js).
Install
npm install publish-decorator --save;
Example :
import {publish} from 'publish-decorator';
@publish
class MyClass {
method1() {
}
@publish
method2(){
}
}
License:
MIT .