{"name":"@node-rs/helper","version":"1.1.1","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.2.0"},"gitHead":"619151692564e925adfb75c4412e53c63c1a4878","_id":"@node-rs/helper@1.1.1","_nodeVersion":"14.17.0","_npmVersion":"lerna/4.0.0/node@v14.17.0+x64 (linux)","dist":{"integrity":"sha512-HnCdrCXKOm2jdzAdIGk4fey5xn8BuCK0+CiWwc3oMIxaQG1/0v24ZlDJV5DiSQo7vYy+1wKmOVRY3ErmZZm7+A==","shasum":"1cbac64cd5bcaa038d9c23bc951c75667dc981c1","tarball":"http://registry-npm.ywwl.com/@node-rs/helper/download/@node-rs/helper-1.1.1.tgz","fileCount":7,"unpackedSize":5929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtZL3CRA9TVsSAnZWagAAJAUQAJhpcK5DLAnEhV8hn4SW\nbJbv1AzNuNjfLTYpXX5gQ+4FzbkDPaMrQ26x7w1Suo1RGqQv+qRGSNZvxOtz\nKGlRSsS4mbRPk7qC6rZLhqV7X1RRC00YCnRM7ADu5/jbh3aXKlGzh9UY/luS\nirE9GrYh6N0QCr5+GwkbLl+VUzkoBUaoNSfBEQ45GUUXBDErNO+6MXAJ1KSy\nlwTkvrgLfSAwZhfJzYREFYPgKXZvqiOStprjLxLodw4gKMK+52zu0psqRYo+\n1aiqAgqT3LSYuDcWJVeIbyifzzkyjV34imLOt0u/4lj5U0Hv3eGkpBouhzOC\n8BZN7nzzNRZPb8MvZeO9lcuRQnjOjh2OP6Kcn3akoDqNJGp/8dTbOGFqL7HG\neuXERaox1OvmP7hnu79+IudGZJsaB+QO9RMTyGI2c5VAITOCsku46uBQkn+D\ncPy2G2yBk09n68Iey9TybM6b+zH8PlVnmjcnvkZ7wjhj2I5gZCs+71AMY0If\nsMHdbzLL/uAkRm/9yMYBU83+nQyTGO+A89QbwFRIxlWaK1C9Qxxk0/n/chhh\n85XW0I3VMZ6FRccOUnf7VU9ZKAi9gIhRTZnx13AFxv2jeiB7l3QMrJPwpB9C\ndlGQiYNQ1Vtj1khJEshjQ/QQ4qOhIp4fF0zp8lvoxmg/6xsn2AAy5ZJ6l3ro\ndPgV\r\n=qEj8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA21AQwMJylf43+jX4ha9z6OmHvchaRxr1FI5jJYI7ybAiBDWWyRcseIBVM+oZemjEhvH8GGcrFXdLlwQ+7l8tJR9w=="}],"size":2887,"noattachment":false,"key":"/@node-rs/helper/-/@node-rs/helper-1.1.1.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.1_1622512375285_0.6255767545629132"},"_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":1622512375400,"_cnpm_publish_time":1622512375400,"dist-tags":{"alpha":"1.0.0-alpha.3","latest":"1.6.2"}}