{"name":"@node-rs/helper","version":"1.1.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.0.2","tslib":"^2.1.0"},"gitHead":"7f9a9851c9a4c744e22627c97295b1a685ffa167","_id":"@node-rs/helper@1.1.0","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (linux)","dist":{"integrity":"sha512-r43YnnrY5JNzDuXJdW3sBJrKzvejvFmFWbiItUEoBJsaPzOIWFMhXB7i5j4c9EMXcFfxveF4l7hT+rLmwtjrVQ==","shasum":"4fcbbebae3b81932d1ff3e431c7cd3886b504742","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.1.0.tgz","fileCount":8,"unpackedSize":6521,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgF7kcCRA9TVsSAnZWagAA6mEQAI9dfRtdRfN3fhQlvL5a\nSnpOFYGQTKUpAZrHFQObuPhP6iG0uyQhAbr2pwehDA69WrO3S5xqTgBb1RX1\nxQM3V8ZhT/+5Ne28j9uw9IC/Fo1/3yMqFA/VElOrRoLipS3R7HOpe1Cy78fO\nUJlRYn8HGIq3LPoFc8Bqiy40QZbsKT1A5zNE15VUP+nYWLfaBNeYXVQu4dwN\nBEIBzH7S7u4thWTYcOjBAyKo0GMcEDRG5VB3qskh+fIzK7T9QMOITLO0PbtM\nzdMGfBdAeb7KY+iDOBpcPKgfTiSPNLynbel4+9Kk+L7+JbY4FVg51KuPoafL\nDoLjaR2Ib8VXwTTv+DwgxqyMuimHQzGyE3RGTZFcbjuB4+WY9jviObUTdfmu\nG02W91Xeq8ho/n5GbSH2xwwopzi6/cD5r5MZt8hEwcow4DPfI3k+o9+50dv8\nCluyg0S/wezYJ4PZCxtghip4MMHk0pOP0fbMXJpBPZ7Y6YpxvboOisN7oz8r\njchD4DQAqFMI5vDPWld2Dq9U7IWa+ZoaNy4VvAS8sp5Zp9hSBcRx1Vyin/W/\nI6sg+XHbMQNs/EBRZ+fhfLHLI98G2WMc1GSnz3rhMB69JzDw2YzzRctSZhsg\nGZy6uGH75ELTd7gjvSuzE4vxYGwXeRiAyUidXhFZClGYyqBVfLG0Khntp/Y9\n/bQ3\r\n=KW/d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7m8yB7Q3XrvoACNLr4U/F1aU34voz9gh/uKMeM2vveAiEA7gDWaYBGpCPCp//aJClD8Mmv166g2kL4khNaLBFZuro="}],"size":3182,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.1.0.tgz"},"_npmUser":{"name":"broooooklyn","email":"lynweklm@gmail.com"},"directories":{},"maintainers":[{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/helper_1.1.0_1612167451623_0.9895253285496044"},"_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":1612167451923,"_cnpm_publish_time":1612167451923,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}