{"name":"@node-rs/helper","version":"0.1.3","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":"^1.11.1"},"gitHead":"a998d92cfa7a4b38e22835665ae123f545702188","_id":"@node-rs/helper@0.1.3","_nodeVersion":"12.16.3","_npmVersion":"lerna/3.20.2/node@v12.16.3+x64 (linux)","dist":{"integrity":"sha512-jqJ8VRRoZDyEcW7cfVintp1qytoOXJkJpMj2pBgMgyGsipWDG5USGR98iDmDDqrcB0LUhOA1xsDuEpJgUYgSzA==","shasum":"da94032fe44bb6a3456d81de1bcdcead1f651817","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-0.1.3.tgz","fileCount":7,"unpackedSize":4699,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerRFDCRA9TVsSAnZWagAA15QP/098XQtDeDSV51zs5Ey9\n/6W73Ocp4iKKcZNcekmP/FIWiSZgLqYf18MfwQ88Y2QvJ8lhnO3gfM3BQ0+l\n4u0K0lIvrLbq3i1z0/3X4t1btRnHOnF4UPAxt1EZz2C/zWOZvpLNLf37RikV\nF55+ZwVv/2oZoDA8my6Zc6Sr5SpEQIi2PPQIIoK3TUwFnzLxToo44cDNTs8d\n4lBaTDhfMwJPNks8vbs2/A+5v3T9bVFywSo52ZfgfDvq9gpL8XTOjj72Mp26\ngmxNFopM+CPEsWMhJJ65EtTq6h4Rbnowllba8KpRSkx1RPLYKK8TFmdTh3HZ\nX9SQyi1IJlpSe84DFY/kd5B3NgMzkCSB9UEOcaQNf7Uscdi+KtNukB9i+hfv\nDEBbZIcx6WMu3Az9uzs8LX3RYv7cto0KEoxmz0yftc//TbWdF85FBB8iCzD5\neQJsAE4GVkh9hffesC5u2wBb3jn3bURKigSDkyaqX/oI1QFOu/3ZSn/El7LD\nlq6Kfy+TBv3I4xJrqOXwg9i61CfdsTN/KtVHWunXR6QmGT2HaN+04iF6YBwh\nuHy6ICLciFKkgUSypWaTaMiZlHGPkIjWicj6EKkFjJLuK47Sy1IqgzfXD43y\n54kvlDehQafs4cNTaftCwRAari/GcuOhcPWVJot+8XFbRPjJoILIk8ppSf2x\nW668\r\n=peWF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZZxiOkxctvBjm2Bvs1ABLRjm+ZcQvJWJetfTJjb3EvAiB8tiq8QcmYihAwD6BbS1KOTuCuRptbHbWeu2JAY6f4Ug=="}],"size":2581,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-0.1.3.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.3_1588400451246_0.9155973079818864"},"_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":1588400451368,"_cnpm_publish_time":1588400451368,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}