๐Ÿƒ Operators

March 13, 2026 ยท View on GitHub

Operator - is main building block for ๐ŸŠPutout plugins. When same logic repeated in couple plugins it is moved out to operator to avoid duplication and reuse logic. When you need something specific, most likely it is already implemented as operator.

declare

When you need to declare something specific, no need to implement this logic again and again: just use @putout/operator-declare. This logic already implemented in next plugins:

This is so common type of plugin that there is type of plugin called Declarator it is appeared in ๐ŸŠPutout v29.

Built-in operators

Here is list of built-in operators

PackageVersion
@putout/operatenpm
@putout/operator-add-argsnpm
@putout/operator-declarenpm
@putout/operator-filesystemnpm
@putout/operator-find-file-upnpm
@putout/operator-ignorenpm
@putout/operator-jsonnpm
@putout/operator-jsxnpm
@putout/operator-keywordnpm
@putout/operator-match-filesnpm
@putout/operator-parensnpm
@putout/operator-regexpnpm
@putout/operator-rename-filesnpm
@putout/operator-rename-propertiesnpm
@putout/operator-remove-filesnpm
@putout/operator-sort-ignorenpm
@putout/operator-watermarknpm
@putout/operator-type-checkernpm