akabekobeko / npm-icon-gen

Icon file generator for Windows, macOS, Web
MIT License
157 stars 29 forks source link

Change classes that need not be instantiated to functions #72

Closed akabekobeko closed 7 years ago

akabekobeko commented 7 years ago

Change classes that need not be instantiated to functions. For static methods only, the function is preferred because it strongly specifies that it has no state.

akabekobeko commented 7 years ago

I changed the class to a function, but the namespace effect was impaired. Aliasing by as on theimport side is also possible. But if it is a class, alias is unnecessary because the class name functions as namespace.

For this reason we will organize public/private etc on this issue.