Skip to content

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

Notifications You must be signed in to change notification settings

digital-flowers/classy-decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published