{"name":"@node-rs/helper","version":"1.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"},"scripts":{"build":"exit 0;"},"dependencies":{"@napi-rs/triples":"^1.1.0"},"gitHead":"baa8a4702e3e71b80f2eeebbf3cb6e384a94eb74","_id":"@node-rs/helper@1.3.0","_nodeVersion":"16.13.1","_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (linux)","dist":{"integrity":"sha512-KPS0EBA1bXtf96IL7wr5bFHxhL2KCZ6kI/hkyLG7nzEq2cDq8pJhOhcJDOLXIPh5J2LEJ5eXyjDTWDFg5eRypw==","shasum":"9326c6c25db045ab827ca9a43ef2f9935d4a9353","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.3.0.tgz","fileCount":7,"unpackedSize":5533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhw0YBCRA9TVsSAnZWagAAFz0P/1inHf90myZjxJmdg0WN\nLSl1P/fd+Y8Y5QyYhwVJBrEYPvkky43JlNKMIbNyjSFDOVSEZeaG3Lqjrc7D\nuFZyqE8uyqpZ99FXr9K3DZOwZjmo8ngTOKzLF8QA1KPtKdhDKVvJzqnsVxVK\nKytXyzlzEUbNkRW329hAVBQi0ykbcNo6xN9t9a8flz6zywYekVkSq4TcJuqH\nS8SluVFb1hxFTkeJMp3Lwdrin9Fbq/8XyDm+kx0vhb82ZbBUu7SsDFcchRNZ\ndgISLk/yiBsWR2g2U3o29wXNfXCeG5v1CRRWrYG6uh/HlubE4ketPbUJNE86\nPO4c/XxdHHcRrI/6KofNLx3f/cPIUl7QyZF2mJWL97sLXuLNOVaDcM3o0TI0\nMighbDWTVBeF+ttXzUZmTfZ9IaLAIWayU7ApA+SmRBo/r3EruysLE/ilSoIf\ngnL105Rkl0jpiSgoDXDct2rBKTyceKL893jOdLt0Kzb9VOfXbgvLq9SxpYYF\nP0a53nCC+sGV1zVYqLiC8MZnkbR6+Ce+4mgRNegY2t9zFrs17oZqF3LonfTN\nfr2y3EXt4MeARC2ZLZLfbotjPQWb9Vsm0noHMBaM9f/iTIm8WzvHA+YGek92\n/eiYfmsqs59GN/ZD42psZJLM1e4SMT0MvX0BLEe3bw1947cao6klxGmRL8PW\n34uM\r\n=fLFy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjHRsigb6Nc2c7hs3yYNz/6t/OzTHz/uuoPObL1i+xSwIgCobe/4z4UoqFn89+GJv0BaXCmZ2aWZA9zA9RSr8sSaI="}],"size":2546,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.3.0.tgz"},"_npmUser":{"name":"broooooklyn","email":"lynweklm@gmail.com"},"directories":{},"maintainers":[{"name":"dxd_sjtu","email":"dxd_sjtu@outlook.com"},{"name":"broooooklyn","email":"lynweklm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/helper_1.3.0_1640187393517_0.6507037865134369"},"_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":1640187393685,"_cnpm_publish_time":1640187393685,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}