{"_id":"@dantheman8300/test1","name":"@dantheman8300/test1","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dantheman8300/test1","collaborators":["Mysten Labs <build@mystenlabs.com>","Daniel Leavitt <daniel.7039@hotmail.com>"],"description":"WASM variant of the move-binary-format","version":"0.1.0","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/mystenlabs/sui.git"},"module":"move_binary_format_wasm.js","types":"move_binary_format_wasm.d.ts","sideEffects":["./snippets/*"],"_id":"@dantheman8300/test1@0.1.0","gitHead":"ac1b2a2933bb1bd297a960dc8fdbf94f76b5a9ac","bugs":{"url":"https://github.com/mystenlabs/sui/issues"},"homepage":"https://github.com/mystenlabs/sui#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-qa5LtxmeRHJat5hbVmzLP9K6lflb4aOVuZanetATlAbnR0kUnzZMJCejhm0cVm6pruRicFhrtcwCkNDLGprEBA==","shasum":"fc58094d2eb8a64c8ea2da35f463b3f1f742242f","tarball":"https://registry.npmjs.org/@dantheman8300/test1/-/test1-0.1.0.tgz","fileCount":5,"unpackedSize":361156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLURxLZ1s+xivhITGetbaVX98KowCcALM+tImkWmT7awIgPsA1NDLGMTbZ3ou1Ah2WrIv2x87OSPxP26zY1MqEmHU="}]},"_npmUser":{"name":"dantheman8300","email":"daniel.7039@hotmail.com"},"directories":{},"maintainers":[{"name":"dantheman8300","email":"daniel.7039@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test1_0.1.0_1704136833698_0.9996539620763718"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-01T19:20:33.548Z","0.1.0":"2024-01-01T19:20:33.895Z","modified":"2024-01-01T19:20:34.214Z"},"maintainers":[{"name":"dantheman8300","email":"daniel.7039@hotmail.com"}],"description":"WASM variant of the move-binary-format","homepage":"https://github.com/mystenlabs/sui#readme","repository":{"type":"git","url":"git+https://github.com/mystenlabs/sui.git"},"bugs":{"url":"https://github.com/mystenlabs/sui/issues"},"license":"Apache-2.0","readme":"# Move Binary Format\n\nThis crate builds a WASM binary for the `move-language/move-binary-format` allowing bytecode serialization and deserialization in various environments. The main environment this package targets is \"web\".\n\n## Usage in Web applications\n\nThe package consists of code and a wasm binary. While the former can be imported directly, the latter should be made available in static / public assets as a Web application. Initialization needs to be performed via a URL, and once completed, other functions become available.\n\n```ts\nimport init, initSync, * as wasm from '@mysten/move-binary-format';\n\nawait init('...path to /move_binary_format_bg.wasm');\n// alternatively initSync(...);\n\nlet version = wasm.version();\nlet json = wasm.deserialize('a11ceb0b06....');\nlet bytes = wasm.serialize(json);\n\nconsole.assert(json == bytes, '(de)serialization failed!');\n```\n\n## Build locally\n\nTo build the binary, you need to have Rust installed and then the `wasm-pack`. The installation script [can be found here](https://rustwasm.github.io/wasm-pack/).\n\nBuilding for test (nodejs) environment - required for tests.\n```\npnpm build:dev\n```\n\nBuilding for web environment.\n```\npnpm build:release\n```\n\n## Running tests\n\nLocal tests can only be run on the `dev` build. To run tests, follow these steps:\n\n```\npnpm build:dev\npnpm test\n```\n","readmeFilename":"README.md"}