{"_id":"@putout/operator-wasm","name":"@putout/operator-wasm","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@putout/operator-wasm","version":"1.0.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to work with wasm","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-wasm#readme","main":"lib/wasm.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report"},"keywords":["putout","putout-operator","operator","wasm"],"devDependencies":{"@putout/test":"^15.0.0","check-dts":"^1.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","nodemon":"^3.0.1","superc8":"^12.0.0","supertape":"^13.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"dependencies":{"montag":"^2.0.1"},"_id":"@putout/operator-wasm@1.0.0","gitHead":"904a3988e9781fc25c263721a8d08e9e1e967212","types":"./lib/wasm.d.ts","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.4.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-oUNipS6HWm3HUoDTc0SMumK6fHe1qT76dJzu1G6k59X1/JvjH2ZF967R2KFwMcoyQEvKkDaHPQ7TfxT6Pb9LYQ==","shasum":"62a5377b19cb3ae8b02e1234d4354b20ec2e488e","tarball":"https://registry.npmjs.org/@putout/operator-wasm/-/operator-wasm-1.0.0.tgz","fileCount":5,"unpackedSize":5423,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD48HvmauYEceikiw1Q+m21HzgLhX9e6R/O+k6Qikx8pQIgXANS4IhLKA5gwMGibWBXXrs0eWVFo6oXfeRn7x0k3oE="}]},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/operator-wasm_1.0.0_1783258692802_0.22718109820781995"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-05T13:38:12.602Z","1.0.0":"2026-07-05T13:38:12.927Z","modified":"2026-07-05T13:38:13.189Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"🐊Putout operator adds ability to work with wasm","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-wasm#readme","keywords":["putout","putout-operator","operator","wasm"],"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"bugs":{"url":"https://github.com/coderaiser/putout/issues"},"license":"MIT","readme":"# @putout/operator-wasm [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-wasm.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-wasm \"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) operator adds ability to lint wasm.\n\n## Install\n\n```\nnpm i putout @putout/operator-wasm\n```\n\n## API\n\n### `__wasm`\n\n```js\nimport {operator} from 'putout';\n\nconst {__wasm} = operator;\n\nexport const traverse = ({push}) => ({\n    [__wasm]: push,\n});\n```\n\n### `wrapInNamespace(source: string, name?: string)`;\n\n```js\nimport {montag} from 'montag';\nimport {operator} from 'putout';\n\nconst {wrapInNamespace} = operator;\n\nwrapInNamespace(montag`\n    export function add(a: i32, b: i32) {\n        i32.add(get.local(b), get.local(a));\n    }\n`);\n// returns\n`namespace __putout_processor_wasm {\n    export function add(a: i32, b: i32) {\n        i32.add(get.local(b), get.local(a));\n    }\n}`;\n```\n\n### `unwrapNamespace(source: string, name?: string)`;\n\n```js\nimport {montag} from 'montag';\nimport {operator} from 'putout';\n\nconst {unwrapNamespace} = operator;\n\nunwrapNamespace(montag`\n    namespace __putout_processor_wasm {\n        export function add(a: i32, b: i32) {\n            i32.add(get.local(b), get.local(a));\n        }\n    }\n`);\n// returns\n`export function add(a: i32, b: i32) {\n    i32.add(get.local(b), get.local(a));\n}`;\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-5772954bfa9eeba76c078d398f6229d2"}