{"name":"@node-rs/helper","version":"0.1.4","description":"Helper library for node-rs","keywords":["N-API","napi","Rust","Performance"],"author":{"name":"LongYinan","email":"lynweklm@gmail.com"},"homepage":"https://github.com/brooooooklyn/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/Brooooooklyn/node-rs.git"},"bugs":{"url":"https://github.com/Brooooooklyn/node-rs/issues"},"dependencies":{"tslib":"^2.0.0"},"gitHead":"083b337ff2e426f6c96964b13772906ba5761719","_id":"@node-rs/helper@0.1.4","_nodeVersion":"12.16.3","_npmVersion":"lerna/3.21.0/node@v12.16.3+x64 (linux)","dist":{"integrity":"sha512-f63wMA9m32dkX40XWCbDysoFLFGf+6WB/Vn90mW3CQVQe2hqgQPHLBMgriuI9eW9gnqdLnuHQGArg1WALeXCYA==","shasum":"829554e99708210022e24f2a2eae0440cc1ce3d0","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-0.1.4.tgz","fileCount":7,"unpackedSize":4809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevnMnCRA9TVsSAnZWagAAq+cP/3DTJXd2R/dzcXWtXcoS\nyHjgUixmHcj92J746x8ZjV38WLiu9cyJzu9x+TuSqt/t5d7nS0z7aIKlJrn/\neXf0bjuuI5QaXy/fx/Vu1/Q9RUgBRG50y8w3sJ6UynTDPwVtQS/gLWAkgD1v\nd8UmaOIztB5t8TtDXEHiyx0ry8/km0q0PUkRMVqTWYlNSKtcRHwuXBawos6y\nWzXzVZ51TMjpJXImicgUSH/sC7tYzhhVz1Rn+Q45bgAhlEVE2zAHU/7/D1vt\nnigdllxTC9meuJCG33mA/me3ogg2k1POVTt0odI5cHNRNPiKpZoY9q+r5OWY\ns43Du84LeVYkOGu2bLjR8w25iozWY3QMb+acHsLlVQT4lz3936A1WlCk5IrZ\nG/8LGqEAh8SlpipbX2MCOTwLC8tXLOwLHV5RfkwKZsj9xcK0jrUHexVVCn4H\nh3BWMNOQ/3PPMyPQvp5XuRdrjQ3i/PgFqfjwpdCYeOA5Gig8MbIFIQOoE8gk\n2xjTszOaA6WHr7HuVfXU046IKlh+UfQb+3yku9H9zpD4SP26n83LJmus6PsY\nyNyx9kj2Nq3GPmZabSXLq95JHF/6Rmzj5MRQ9Vp+lqpLABYqlqmL7PDu3oU9\ny8iBO+S5HRHRnudHp8V2gu5HqqGPZYva6EzIVQFAq9AMuktwZrdOColnr7RF\nM7Ve\r\n=uLQw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLFWJtid48q/uTb70dSa3sIIbjhoJSMksqaEZ+LVIHSAiEA/GGtrerSQkKiH2BlCPCr7Oo3M5p8Y1ekfvbAIO68PC8="}],"size":2626,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-0.1.4.tgz"},"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_npmUser":{"name":"broooooklyn","email":"lynweklm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/helper_0.1.4_1589539623470_0.5683272914077762"},"_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":1589539623633,"_cnpm_publish_time":1589539623633,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}