decorate

JSON →
library 1.0.0 ·javascript
verified Jun 4, 2026

decorate is a lightweight library (v1.0.0) that allows using decorators in JavaScript without needing transpilers like Babel or TypeScript. It provides a `decorate()` function that applies decorators to classes, methods, or properties. It is useful for environments where native decorator syntax is unsupported or to avoid build tooling. The package is stable but has low release cadence. It offers both ESM and CJS exports and works in Node.js and browsers. Differentiator: it enables decorator patterns without transpilation overhead.