Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

classy-decorator

1.0.4 • Public • Published

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

install

npm i classy-decorator

Downloadsweekly downloads

16

version

1.0.4

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability