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.
npm install decorateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use decorate to apply class and method decorators without transpiler.
The class is modified directly; treat it as mutation.
Apply decorators in the order they should execute.
Use import decorate from 'decorate' or const decorate = require('decorate').default;Ensure decorator argument is a function (class) or string (method name) followed by decorator function.
No dependency data recorded yet.