# @putout/operator-wasm

> 🐊Putout operator adds ability to work with wasm

Latest version **1.0.0** (published 2026-07-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @putout/operator-wasm
pnpm add @putout/operator-wasm
yarn add @putout/operator-wasm
bun add @putout/operator-wasm
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-07-05 |
| First published | 2026-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 1 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 802 |
| Author | coderaiser |
| Maintainers | coderaiser |
| Keywords | putout, putout-operator, operator, wasm |

## Links

- npm: https://www.npmjs.com/package/@putout/operator-wasm
- Repository: https://github.com/coderaiser/putout
- Homepage: https://github.com/coderaiser/putout/tree/master/packages/operator-wasm#readme
- Issues: https://github.com/coderaiser/putout/issues
- npm.io page: https://npm.io/package/@putout/operator-wasm

## Dependencies (1)

- [montag](https://npm.io/package/montag.md) ^2.0.1

## Recent versions

- 1.0.0 (latest) — 2026-07-05

## README

# @putout/operator-wasm [![NPM version][NPMIMGURL]][NPMURL]

[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-wasm.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/operator-wasm "npm"

🐊[**Putout**](https://github.com/coderaiser/putout) operator adds ability to lint wasm.

## Install

```
npm i putout @putout/operator-wasm
```

## API

### `__wasm`

```js
import {operator} from 'putout';

const {__wasm} = operator;

export const traverse = ({push}) => ({
    [__wasm]: push,
});
```

### `wrapInNamespace(source: string, name?: string)`;

```js
import {montag} from 'montag';
import {operator} from 'putout';

const {wrapInNamespace} = operator;

wrapInNamespace(montag`
    export function add(a: i32, b: i32) {
        i32.add(get.local(b), get.local(a));
    }
`);
// returns
`namespace __putout_processor_wasm {
    export function add(a: i32, b: i32) {
        i32.add(get.local(b), get.local(a));
    }
}`;
```

### `unwrapNamespace(source: string, name?: string)`;

```js
import {montag} from 'montag';
import {operator} from 'putout';

const {unwrapNamespace} = operator;

unwrapNamespace(montag`
    namespace __putout_processor_wasm {
        export function add(a: i32, b: i32) {
            i32.add(get.local(b), get.local(a));
        }
    }
`);
// returns
`export function add(a: i32, b: i32) {
    i32.add(get.local(b), get.local(a));
}`;
```

## License

MIT

---
_Source: https://npm.io/package/@putout/operator-wasm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
