{"name":"@node-rs/helper","version":"0.3.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":{"tslib":"^2.0.0"},"gitHead":"16f61664fae6f172d78a572549c428cfd98752f8","_id":"@node-rs/helper@0.3.0","_nodeVersion":"12.18.3","_npmVersion":"lerna/3.22.1/node@v12.18.3+x64 (linux)","dist":{"integrity":"sha512-1p67WcdFAtz5jVGpzpqJL2W+JKmoW4jmPD2cIJOAU4U+Fl5G9QsoFTa07ctiNosSsjYqnvgyE0KWV75YdpDqDg==","shasum":"6ab53f3842086f56df92f4990dda642afba84f10","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-0.3.0.tgz","fileCount":7,"unpackedSize":5285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQKPFCRA9TVsSAnZWagAAXSkP/AvqAV+HAsiHgn0G/BoL\nWPF+Hsbp+S2t8YF/YGFuutuxLPhjO2kzBAYDfP/TWDrw5j74FWxL1I0uk0zu\n6V9peA10bBFulY+gHGrgjfikLFUgrQO1SpXjAos5LYZuV3X48vozSnrvAZZA\nYFn4Vekopa6Y0yqaKLiVCdJpHSnfbf4fNEF9eqDMESNR6EQSSDWBMAbs2Lbp\nyEblQd4KRyvv8F7selgOihbyH07DP2qSS4XpIAlL2O5KDfc3FSfveR5eCYtO\n5l3jtaKSoZOSPJB2k+lVtjka5uSM0MM9zccbsm3bPGdAf/RvmPkuitQnMHs2\nR862sHcDGCmqpTzG79nLu5iN8oe04wmypm7qVkT9/Fr9CzuIshBD1u3aP32W\nVpQMrRUtTWsHqNOXMl/zStaBbNuImgI0/emf2R810PNwvldibcgGMAmvb/i7\n3sG/0UymzuTaFbu/85gkjoLUXv8tciJ/YhhtrSxVCcuKuYOL/3Y4ystRDTiu\nTZ/AYgzMCXX96JJy/y4EYAT6P+DwQak95aHK6c7Q3281It/qvTozVq4nBIiI\npAXHf/xmttPSKF+gizNgzvRnml/QatsXOcLGAK9CEJNyn1kCV9Jk4y6Asr4z\n6EvXbCQQVWMxdTZpcRDCahBdl4/duMa+vgA40Wji70ukt9DbzJ/1uCY/UpOI\nDiEh\r\n=PYmC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZf2wsysJnmDLZ4QMmu6r7jh69PsDpkJAykmz7jN5OfAIhAJ+o4qONwfe/KRkIWxLW8qrO7XIACF9PAI08Gzdc9Xua"}],"size":2754,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-0.3.0.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.3.0_1598071748652_0.23160491213260292"},"_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":1598071748800,"_cnpm_publish_time":1598071748800,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}