decorators for reducing repetitive code


13322.0.0-rc16 days ago2 years agoMinified + gzip package size for utils-decorators in KB



Build Status
Coverage Status
Mutation testing badge

This library was highly inspired by lodash but uses decorators to implement its util methods.
The lib can be used both in node and in web application, it is built to be tree-shakable so you can use it even if you need a specific decorator.
Also, note that this library can be used both as functions and decorators,


npm i utils-decorators

Please note that the decorators are working perfectly with plain JavaScript code as well as with TypeScript.


check the documentation


I will be more than happy to hear your feedback, don't hesitate to ask any question or open an issue. PRs are always welcomed :)
Also, I will be happy to hear about new ideas for new decorators, if you have such, please open an issue and describe the requirements and features of your decorator.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.