cd

classy-decorator

call your javascript class without new because this is the classy way ;)

Showing:

Popularity

Downloads/wk

6

GitHub Stars

7

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

classy-decorator

Create an instance from your javascript class without new keyword because this is more classy ;)

install

npm i classy-decorator --save

very easy to use

import classy from "classy-decorator";

@classy()
class IamClassy {
    constructor() {
        console.log("IamClassy Instance!");
    }
}

console.log(new IamClassy() instanceof IamClassy);  // true

console.log(IamClassy() instanceof IamClassy);  // true

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100