{"name":"@node-rs/helper","version":"1.6.2","description":"Helper library for node-rs","keywords":["N-API","Performance","Rust","napi"],"homepage":"https://github.com/napi-rs/node-rs","bugs":{"url":"https://github.com/napi-rs/node-rs/issues"},"license":"MIT","author":{"name":"LongYinan","email":"lynweklm@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/napi-rs/node-rs.git"},"main":"lib/index.js","typings":"lib/index.d.ts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build":"exit 0;"},"dependencies":{"@napi-rs/triples":"^2.1.21"},"gitHead":"56c64a1f875d9568b0a6a79b6c658ce5996d25a2","_id":"@node-rs/helper@1.6.2","_nodeVersion":"24.20.0","_npmVersion":"lerna/10.0.1/node@v24.20.0+x64 (linux)","dist":{"integrity":"sha512-Iyq+Y+yFSBwri6uQL9T1Py7aTAcvHs4XWloYxMMzLlRqunzqNCzmfB3WeHV12WmqvtWBJVro5Dtz0sMZqbseUQ==","shasum":"a3cc69676cba2fc49b3d3fc58425578d8619b0db","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.6.2.tgz","fileCount":7,"unpackedSize":5455,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@node-rs%2fhelper@1.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFk+x3PL3qD+2t3XgVGNeQAmufFgGLMdd/T8WfI49aZwAiAtlWUkzmfmGFtIiY43fnVFkkIQUDeO9gtjfB9qwmq4jg=="}],"size":2513,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.6.2.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:460f5957-bcfc-4a4a-80b7-087dc3a7fba8"}},"directories":{},"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/helper_1.6.2_1789019979750_0.7385584968432697"},"_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":1789019979885,"_cnpm_publish_time":1789019979885,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}