{"_id":"@bananalf/relayer-utils","_rev":"7-b535626539bc1fb6246209039837f8cd","name":"@bananalf/relayer-utils","dist-tags":{"latest":"0.2.10"},"versions":{"0.2.8":{"name":"@bananalf/relayer-utils","version":"0.2.8","license":"MIT","_id":"@bananalf/relayer-utils@0.2.8","maintainers":[{"name":"bananalf","email":"864685021@qq.com"}],"contributors":[{"name":"Sora Suegami","email":"suegamisora@gmail.com"},{"name":"Aditya Bisht","email":"adityabisht64@gmail.com"}],"homepage":"https://github.com/BananaLF/relayer-utils#readme","bugs":{"url":"https://github.com/BananaLF/relayer-utils/issues"},"dist":{"shasum":"1d83e611b87718fe56c252bcc55d4126a7216963","tarball":"https://registry.npmjs.org/@bananalf/relayer-utils/-/relayer-utils-0.2.8.tgz","fileCount":5,"integrity":"sha512-ayZOYjJXIiUza8m8gd9g4fo7vW0fywOzwmdqDHBVbUpMFxTnd/u6DRtkC0kHSUErO5TNHgpmd/TDIMIAYPgseA==","signatures":[{"sig":"MEUCIQD+qAkfJRvEnN0k8ulwg/CP47wpEIPrzJXdw0PR/6tDygIgDYmOMrtFfrUZmCWd9BOOMb5QGZbwpn5a/iNSo87d7AI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14341687},"main":"index.js","binary":{"host":"https://github.com/BananaLF/relayer-utils/releases/download/","module_name":"index","module_path":"./","remote_path":"{version}","package_name":"relayer-utils-{platform}-{arch}.tar.gz"},"gitHead":"7469ca813f359c97370914844aa191875c77c20a","scripts":{"test":"cargo test","build":"cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics","install":"node-pre-gyp install --update-binary --fallback-to-build=false || npm run build-release","package":"node-pre-gyp package","build-debug":"npm run build --","build-release":"npm run build -- --release","upload-binary":"node-pre-gyp-github publish --release"},"_npmUser":{"name":"bananalf","email":"864685021@qq.com"},"repository":{"url":"git+https://github.com/BananaLF/relayer-utils.git","type":"git"},"_npmVersion":"10.7.0","description":"This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).","directories":{},"_nodeVersion":"20.15.1","dependencies":{"cargo-cp-artifact":"^0.1","node-pre-gyp-github":"git+https://github.com/ultamatt/node-pre-gyp-github.git","@mapbox/node-pre-gyp":"^1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/relayer-utils_0.2.8_1728397650676_0.25446335633525363","host":"s3://npm-registry-packages"}},"0.2.9":{"name":"@bananalf/relayer-utils","version":"0.2.9","license":"MIT","_id":"@bananalf/relayer-utils@0.2.9","maintainers":[{"name":"bananalf","email":"864685021@qq.com"}],"contributors":[{"name":"Sora Suegami","email":"suegamisora@gmail.com"},{"name":"Aditya Bisht","email":"adityabisht64@gmail.com"}],"homepage":"https://github.com/BananaLF/relayer-utils#readme","bugs":{"url":"https://github.com/BananaLF/relayer-utils/issues"},"dist":{"shasum":"8c49af2db99969366761e219b112a20dbe43f215","tarball":"https://registry.npmjs.org/@bananalf/relayer-utils/-/relayer-utils-0.2.9.tgz","fileCount":5,"integrity":"sha512-b0SAdGyvsYzS+m1/eoC0vkSKcmQpaEYgcTQk1F1i0L1H3u0o936fj3ndSDysGfwu2O/FGO1efmQjOjwBSQwUhA==","signatures":[{"sig":"MEUCIEFbRvi5Mr+/87VeiF6Tr4NOGIq68UBbv8+OwyJ6GnFKAiEAlikqXshBNeaLRY8QdjOmqFQOCS9X/F8TTzOJY33o1WU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14340783},"main":"index.js","binary":{"host":"https://github.com/BananaLF/relayer-utils/releases/download/","module_name":"index","module_path":"./","remote_path":"{version}","package_name":"relayer-utils-{platform}-{arch}.tar.gz"},"gitHead":"d5fbf7009f770ee0ec8fbc81bc67029a013a01e7","scripts":{"test":"cargo test","build":"cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics","install":"node-pre-gyp install --update-binary --fallback-to-build=false || npm run build-release","package":"node-pre-gyp package","build-debug":"npm run build --","build-release":"npm run build -- --release","upload-binary":"node-pre-gyp-github publish --release"},"_npmUser":{"name":"bananalf","email":"864685021@qq.com"},"repository":{"url":"git+https://github.com/BananaLF/relayer-utils.git","type":"git"},"_npmVersion":"10.7.0","description":"This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).","directories":{},"_nodeVersion":"20.15.1","dependencies":{"cargo-cp-artifact":"^0.1","node-pre-gyp-github":"git+https://github.com/ultamatt/node-pre-gyp-github.git","@mapbox/node-pre-gyp":"^1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/relayer-utils_0.2.9_1732775829143_0.9890886760973612","host":"s3://npm-registry-packages"}},"0.2.10":{"name":"@bananalf/relayer-utils","version":"0.2.10","description":"This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).","main":"index.js","contributors":[{"name":"Sora Suegami","email":"suegamisora@gmail.com"},{"name":"Aditya Bisht","email":"adityabisht64@gmail.com"}],"scripts":{"build":"cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics","build-debug":"npm run build --","build-release":"npm run build -- --release","install":"node-pre-gyp install --update-binary --fallback-to-build=false || npm run build-release","test":"cargo test","package":"node-pre-gyp package","upload-binary":"node-pre-gyp-github publish --release"},"license":"MIT","dependencies":{"@mapbox/node-pre-gyp":"^1.0","cargo-cp-artifact":"^0.1","node-pre-gyp-github":"git+https://github.com/ultamatt/node-pre-gyp-github.git"},"repository":{"type":"git","url":"git+https://github.com/BananaLF/relayer-utils.git"},"binary":{"module_name":"index","host":"https://github.com/BananaLF/relayer-utils/releases/download/","remote_path":"{version}","package_name":"relayer-utils-{platform}-{arch}.tar.gz","module_path":"./"},"_id":"@bananalf/relayer-utils@0.2.10","gitHead":"12a81b2f7df81ec1b45b98992ba1f6eea1da5dd5","bugs":{"url":"https://github.com/BananaLF/relayer-utils/issues"},"homepage":"https://github.com/BananaLF/relayer-utils#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-jRC5oR4IbBicZjFGlPHJkH1HqNzDICIBAnpeMn8V/tH6SgQ71lEkCt57ZPTMhV+pPWKTN2BtlJlKez4H3856hA==","shasum":"d2144a64933282b0b5ef37308687e81dbad7bbfe","tarball":"https://registry.npmjs.org/@bananalf/relayer-utils/-/relayer-utils-0.2.10.tgz","fileCount":5,"unpackedSize":14229336,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJV+UTjrlImrrimgvldIYw0NGlFJQjvovo2uYgzOFTbAiEAtL59W1lm+1xPLfLfRu4l3XJwS3l7U7SlpRFE9ILMPa4="}]},"_npmUser":{"name":"bananalf","email":"864685021@qq.com"},"directories":{},"maintainers":[{"name":"bananalf","email":"864685021@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/relayer-utils_0.2.10_1735492865876_0.6834755395608991"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-08T14:27:30.531Z","modified":"2024-12-29T17:21:06.441Z","0.2.4":"2024-08-19T14:25:03.061Z","0.2.7":"2024-08-26T10:14:21.963Z","0.2.8":"2024-10-08T14:27:31.102Z","0.2.9":"2024-11-28T06:37:09.467Z","0.2.10":"2024-12-29T17:21:06.220Z"},"bugs":{"url":"https://github.com/BananaLF/relayer-utils/issues"},"license":"MIT","homepage":"https://github.com/BananaLF/relayer-utils#readme","repository":{"type":"git","url":"git+https://github.com/BananaLF/relayer-utils.git"},"description":"This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).","contributors":[{"name":"Sora Suegami","email":"suegamisora@gmail.com"},{"name":"Aditya Bisht","email":"adityabisht64@gmail.com"}],"maintainers":[{"name":"bananalf","email":"864685021@qq.com"}],"readme":"# Relayer Utils\n\nThis project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).\n\n## Installing relayer utils\n\nInstalling relayer utils requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).\n\nYou can install the project with npm. In the project directory, run:\n\n```sh\n$ npm install\n```\n\nThis fully installs the project, including installing any dependencies and running the build.\n\n## Building relayer utils\n\nIf you have already installed the project and only want to run the build, run:\n\n```sh\n$ npm run build\n```\n\nThis command uses the [cargo-cp-artifact](https://github.com/neon-bindings/cargo-cp-artifact) utility to run the Rust build and copy the built library into `./index.node`.\n\n## Exploring relayer utils\n\nAfter building relayer utils, you can explore its exports at the Node REPL:\n\n```sh\n$ npm install\n$ node\n> require('.').hello()\n\"hello node\"\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm install`\n\nInstalls the project, including running `npm run build`.\n\n### `npm build`\n\nBuilds the Node addon (`index.node`) from source.\n\nAdditional [`cargo build`](https://doc.rust-lang.org/cargo/commands/cargo-build.html) arguments may be passed to `npm build` and `npm build-*` commands. For example, to enable a [cargo feature](https://doc.rust-lang.org/cargo/reference/features.html):\n\n```\nnpm run build -- --feature=beetle\n```\n\n#### `npm build-debug`\n\nAlias for `npm build`.\n\n#### `npm build-release`\n\nSame as [`npm build`](#npm-build) but, builds the module with the [`release`](https://doc.rust-lang.org/cargo/reference/profiles.html#release) profile. Release builds will compile slower, but run faster.\n\n### `npm test`\n\nRuns the unit tests by calling `cargo test`. You can learn more about [adding tests to your Rust code](https://doc.rust-lang.org/book/ch11-01-writing-tests.html) from the [Rust book](https://doc.rust-lang.org/book/).\n\n## Project Layout\n\nThe directory structure of this project is:\n\n```\nrelayer utils/\n├── Cargo.toml\n├── README.md\n├── index.node\n├── package.json\n├── src/\n|   └── lib.rs\n└── target/\n```\n\n### Cargo.toml\n\nThe Cargo [manifest file](https://doc.rust-lang.org/cargo/reference/manifest.html), which informs the `cargo` command.\n\n### README.md\n\nThis file.\n\n### index.node\n\nThe Node addon—i.e., a binary Node module—generated by building the project. This is the main module for this package, as dictated by the `\"main\"` key in `package.json`.\n\nUnder the hood, a [Node addon](https://nodejs.org/api/addons.html) is a [dynamically-linked shared object](<https://en.wikipedia.org/wiki/Library_(computing)#Shared_libraries>). The `\"build\"` script produces this file by copying it from within the `target/` directory, which is where the Rust build produces the shared object.\n\n### package.json\n\nThe npm [manifest file](https://docs.npmjs.com/cli/v7/configuring-npm/package-json), which informs the `npm` command.\n\n### src/\n\nThe directory tree containing the Rust source code for the project.\n\n### src/lib.rs\n\nThe Rust library's main module.\n\n### target/\n\nBinary artifacts generated by the Rust build.\n\n## Learn More\n\nTo learn more about Neon, see the [Neon documentation](https://neon-bindings.com).\n\nTo learn more about Rust, see the [Rust documentation](https://www.rust-lang.org).\n\nTo learn more about Node, see the [Node documentation](https://nodejs.org).\n\n## publish\n\nAfter build success and publish new version, we maybe publish package to npm and github\n\n### publish github\n\nAt first, change version in package.json version\nset Github Access Token\n` export NODE_PRE_GYP_GITHUB_TOKEN=<>`\nthen to publish\n`npm run upload-binary`\n\nThe last, do same things in other platform(linux/macos arm/x86)\n\n### publish npm\n\nlogin npm\n`npm login`\n`npm publish --access public`\n","readmeFilename":"README.md"}