{"name":"@node-rs/helper","version":"1.0.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"},"dependencies":{"@napi-rs/triples":"^1.0.2","tslib":"^2.0.3"},"_id":"@node-rs/helper@1.0.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-B4CSMHCuYPqai3LMsRTXyvBEP24YRnCZUUsDPYkgFD6tFA+q43rLkaEzsnTJTKJq5ZnJ4n5YJpJwEz7Xn8+0vg==","shasum":"9fcd3f38b84af599e42c0aec272b308da55583e9","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.0.0.tgz","fileCount":7,"unpackedSize":5060,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf62LACRA9TVsSAnZWagAAlNMP/RcNdEnkRVpL5tGsW3FW\nxYTCQt4KjSxBlLS8w9cGmLy9ljVLxgW6sSkW2mbuGCJmNNmiQTLLwesudnNh\nE51R5Qt7eeMssLBKHKcGfPQYe4DwHGlSVzkPAF77KPqADfwF8LRaWX7g2F98\nWs0Jsl3P5gFHIw1qmbgHliAskxrppEwte8ReTVh0axoUvCxJrjJarptxSK/T\n+RWq4fi9QNT4z/FQKJyHGU3QInvbi276U/SGAkPBxXd52s+6zObBqG+2s3kG\ncDuJjiNZIUyzZrTRdX2NBwlD9RwGArMH86/Nts+r7IUVEJxZISsKhxAjR/s4\nZyek0eBGvzKnkZFD5Xvnm6uGGNk8Ej1+3DW2JPcFYfiiZfj/i0TMHuHuUGPj\nS0gudhZjryHLRAPcQ7kqla7dbWsX4Ypf6+TDa06RExp2hdK6q8Hk75j5CfHw\n1J6Ltcd3p1sDhbCq+AMhlgVfGYo1O0F9tqgy8VU0bBm+XsRNTx11lR78bM05\n4pZDy1FzAxx0QgcaRsjn2gswumAI/SS1t/L2sXgjC3M7pny+i7JFdF1ggPVh\ni2B00qx/gO81qIUzY+ely1QKEkC0GMDvQrLKgfbQd6DR6KKIxNFoTYA5QHBU\n+cg83RxOI9Pv3MJwQ0x29diOc8c9DXS9ugt6dGwQ1mK2n/+L48EoJ8Ma2J09\ncxqe\r\n=npV4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmI1D7UewGDzlwSWxnGVwX2i6vlwb/J+9V276c6ku5mAiEAk5N++0fEVCk57bjmcg60JcWNrI/d2vwbJQKXKNaXFgk="}],"size":2370,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.0.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.0.0_1609261760210_0.5081354094009081"},"_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":1609261760345,"_cnpm_publish_time":1609261760345,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}