{"name":"@node-rs/helper","version":"1.6.0","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":"0cd908927e81405316f9e0161808fb66ed4d15ae","_id":"@node-rs/helper@1.6.0","_nodeVersion":"20.12.2","_npmVersion":"lerna/8.1.2/node@v20.12.2+x64 (linux)","dist":{"integrity":"sha512-2OTh/tokcLA1qom1zuCJm2gQzaZljCCbtX1YCrwRVd/toz7KxaDRFeLTAPwhs8m9hWgzrBn5rShRm6IaZofCPw==","shasum":"83e5381de6e898d0b8c92178bb8d897d619e3a3a","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.6.0.tgz","fileCount":7,"unpackedSize":5533,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@node-rs%2fhelper@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpecwVKpwygiFQz9ayfofLPxYwq8MlLYCQU+D46XQjbAiAY3noO1iH+zL55hktsUqM5HEO3+j8aZ7q9YsQjpGMw1w=="}],"size":2562,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.6.0.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.6.0_1713678926535_0.8797856653546068"},"_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":1713678926706,"_cnpm_publish_time":1713678926706,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}