{"name":"@node-rs/helper","version":"1.4.1","description":"Helper library for node-rs","keywords":["N-API","napi","Rust","Performance"],"author":{"name":"LongYinan","email":"lynweklm@gmail.com"},"homepage":"https://github.com/napi-rs/node-rs","license":"MIT","main":"lib/index.js","typings":"lib/index.d.ts","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"repository":{"type":"git","url":"git+https://github.com/napi-rs/node-rs.git"},"bugs":{"url":"https://github.com/napi-rs/node-rs/issues"},"scripts":{"build":"exit 0;"},"dependencies":{"@napi-rs/triples":"^1.2.0"},"gitHead":"ed4e9aa062423c2c67b2df61265d84744b4d12ba","_id":"@node-rs/helper@1.4.1","_nodeVersion":"20.10.0","_npmVersion":"lerna/8.0.1/node@v20.10.0+x64 (linux)","dist":{"integrity":"sha512-nzgiDtbBcuB4yxnDCNNnLXClkxRYvWQhjM8Hwizr8igGfxXoMo8zsp0zcmPW7TM4AOPnGz0kd47Xv1eoeyJlTA==","shasum":"3bc6e3fe84e8f90c90aadcaaa13b72f9fda0ed4f","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.4.1.tgz","fileCount":7,"unpackedSize":5533,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@node-rs%2fhelper@1.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbAgyT+EwACiEayuIz4WUfBd+9HO2Wmiq1m73/gWbBlAiAH/lOY4aN3uNsISx98HjYJiG0rOtN4830bSr3B+jXBrw=="}],"size":2560,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.4.1.tgz"},"_npmUser":{"name":"broooooklyn","email":"lynweklm@gmail.com"},"directories":{},"maintainers":[{"name":"dxd_sjtu","email":"dxd_sjtu@outlook.com"},{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/helper_1.4.1_1704298147154_0.3183930403317534"},"_hasShrinkwrap":false,"readme":"# `@node-rs/helper`\n\n[![install size](https://packagephobia.com/badge?p=@node-rs/helper)](https://packagephobia.com/result?p=@node-rs/helper)\n[![Downloads](https://img.shields.io/npm/dm/@node-rs/helper.svg?sanitize=true)](https://npmcharts.com/compare/@node-rs/helper?minimal=true)\n\n> Helper library for load native package.\n\n## Usage\n\n### locateBinding\n\nLoad native binding file from `dirname`\n\n```ts\nloadBinding(dirname: string, filename?: string = 'index', packageName?: string): string\n```\n\n- `dirname`, dirname which the **.node** binding file located\n- `filename`, the `napi.name` filed in you `package.json`\n- `packageName`, the `name` filed in your `package.json`, `@swc/core` for example.\n\n- return native module\n\n```ts\nconst { loadBinding } = require('@node-rs/helper')\n\nmodule.exports = loadBinding(__dirname, 'swc', '@swc/core')\n```\n","publish_time":1704298147329,"_cnpm_publish_time":1704298147329,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}