{"_id":"@bika.ai/license","_rev":"9-b3482e3f1aad9e88b85f0b4369e69d7d","name":"@bika.ai/license","dist-tags":{"latest":"1.0.1","next":"1.0.0"},"versions":{"0.0.4":{"name":"@bika.ai/license","version":"0.0.4","license":"MIT","_id":"@bika.ai/license@0.0.4","maintainers":[{"name":"vikainc","email":"dev@vikadata.com"}],"ava":{"timeout":"3m"},"dist":{"shasum":"c1a2de1ad9b9dd77e140a2617d551cc338460443","tarball":"https://registry.npmjs.org/@bika.ai/license/-/license-0.0.4.tgz","fileCount":20,"integrity":"sha512-z/aAqs7DbYof5exWzYtM7sdj0ChEYbZsAs83ZJuPdjspU98Eo7tSAuIzx3Eha/tQOQkGNbp9sP2y33ovJZX17Q==","signatures":[{"sig":"MEUCIQDKv9k+YjKLOI+1nejLR8sFcPGmKI7QAYjuQGUv7PmPBAIgbJgjwQJzP7gCTxn4uA0ofJWSPEhBLuDaubQQfAX8cbA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8263002},"main":"index.js","napi":{"name":"license","triples":{"additional":["aarch64-apple-darwin","aarch64-linux-android","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-unknown-linux-gnueabihf","armv7-unknown-linux-musleabihf","x86_64-unknown-linux-musl","x86_64-unknown-freebsd","i686-pc-windows-msvc","armv7-linux-androideabi","universal-apple-darwin","riscv64gc-unknown-linux-gnu"]}},"types":"index.d.ts","engines":{"node":">= 10"},"gitHead":"aebcef0b05c30195a1ab138ce7c373c54a12a866","scripts":{"test":"ava","build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","universal":"napi universal","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"vikainc","email":"dev@vikadata.com"},"_npmVersion":"10.7.0","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"packageManager":"yarn@4.3.1","devDependencies":{"ava":"^6.0.1","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@bika.ai/license-darwin-x64":"0.0.4","@bika.ai/license-freebsd-x64":"0.0.4","@bika.ai/license-darwin-arm64":"0.0.4","@bika.ai/license-android-arm64":"0.0.4","@bika.ai/license-linux-x64-gnu":"0.0.4","@bika.ai/license-linux-x64-musl":"0.0.4","@bika.ai/license-win32-x64-msvc":"0.0.4","@bika.ai/license-linux-arm64-gnu":"0.0.4","@bika.ai/license-win32-ia32-msvc":"0.0.4","@bika.ai/license-android-arm-eabi":"0.0.4","@bika.ai/license-darwin-universal":"0.0.4","@bika.ai/license-linux-arm64-musl":"0.0.4","@bika.ai/license-win32-arm64-msvc":"0.0.4","@bika.ai/license-linux-riscv64-gnu":"0.0.4","@bika.ai/license-linux-arm-gnueabihf":"0.0.4","@bika.ai/license-linux-arm-musleabihf":"0.0.4"},"_npmOperationalInternal":{"tmp":"tmp/license_0.0.4_1721125751323_0.6052950666540335","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@bika.ai/license","version":"0.0.5","license":"MIT","_id":"@bika.ai/license@0.0.5","maintainers":[{"name":"vikainc","email":"dev@vikadata.com"}],"ava":{"timeout":"3m"},"dist":{"shasum":"5a267f53a0cd2fc4afb3cb3bcd5c85d6959b7be3","tarball":"https://registry.npmjs.org/@bika.ai/license/-/license-0.0.5.tgz","fileCount":19,"integrity":"sha512-0ZK9eCryYyxfZzdeHzfmIyGaHjtoFpdWgUSWAY0mOPEuZrmwPs8zXD62P8vxRFihQ57dHrIk7XM5sBK/ARzmgw==","signatures":[{"sig":"MEYCIQCbQRGAE68ySWVpbpzF2Kk9qlWLhUoC6LhTpexocs13GAIhAM8OqKb7i1R4eMR3sJViwhB68raaFlBI58TTwDl05Vfa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8262574},"main":"index.js","napi":{"name":"license","triples":{"additional":["aarch64-apple-darwin","aarch64-linux-android","aarch64-unknown-linux-gnu","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-unknown-linux-gnueabihf","armv7-unknown-linux-musleabihf","x86_64-unknown-linux-musl","x86_64-unknown-freebsd","i686-pc-windows-msvc","armv7-linux-androideabi","universal-apple-darwin","riscv64gc-unknown-linux-gnu"]}},"types":"index.d.ts","engines":{"node":">= 10"},"gitHead":"ff93ba36e828828ef337c2d5ecf7df2b5ea228c3","scripts":{"test":"ava","build":"napi build --platform --release","version":"napi version","artifacts":"napi artifacts","universal":"napi universal","build:debug":"napi build --platform","prepublishOnly":"napi prepublish -t npm"},"_npmUser":{"name":"vikainc","email":"dev@vikadata.com"},"_npmVersion":"10.7.0","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"packageManager":"yarn@4.3.1","devDependencies":{"ava":"^6.0.1","@napi-rs/cli":"^2.18.4"},"optionalDependencies":{"@bika.ai/license-darwin-x64":"0.0.5","@bika.ai/license-freebsd-x64":"0.0.5","@bika.ai/license-darwin-arm64":"0.0.5","@bika.ai/license-android-arm64":"0.0.5","@bika.ai/license-linux-x64-gnu":"0.0.5","@bika.ai/license-linux-x64-musl":"0.0.5","@bika.ai/license-win32-x64-msvc":"0.0.5","@bika.ai/license-linux-arm64-gnu":"0.0.5","@bika.ai/license-win32-ia32-msvc":"0.0.5","@bika.ai/license-android-arm-eabi":"0.0.5","@bika.ai/license-darwin-universal":"0.0.5","@bika.ai/license-linux-arm64-musl":"0.0.5","@bika.ai/license-win32-arm64-msvc":"0.0.5","@bika.ai/license-linux-riscv64-gnu":"0.0.5","@bika.ai/license-linux-arm-gnueabihf":"0.0.5","@bika.ai/license-linux-arm-musleabihf":"0.0.5"},"_npmOperationalInternal":{"tmp":"tmp/license_0.0.5_1721126394733_0.1528209660185449","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@bika.ai/license","version":"1.0.0","keywords":["napi-rs","NAPI","N-API","Rust","node-addon","node-addon-api"],"license":"MIT","_id":"@bika.ai/license@1.0.0","maintainers":[{"name":"vikainc","email":"dev@vikadata.com"}],"homepage":"https://github.com/mr-kelly/bika-license2#readme","bugs":{"url":"https://github.com/mr-kelly/bika-license2/issues"},"ava":{"timeout":"2m","extensions":{"ts":"module"},"nodeArguments":["--import","@oxc-node/core/register"],"workerThreads":false,"environmentVariables":{"OXC_TSCONFIG_PATH":"./__test__/tsconfig.json"}},"dist":{"shasum":"f441d93782054f91d89f11180be7034c8f4cb2cc","tarball":"https://registry.npmjs.org/@bika.ai/license/-/license-1.0.0.tgz","fileCount":21,"integrity":"sha512-SpqfOfUlP1KwTDZWphVwsGQkyOE8qnPo0/5u9B2E/hyf0eselHsR9A6giaN42I1KywuKAEbZy7dh7bCidMZHJg==","signatures":[{"sig":"MEUCIQCSoHt9n+7yojiWl3xfpNaDrUEEkY3DE+QRNb2pMNATiAIgNB+StbtMp5zStxM1AsXMvLoDV9uKlIqZdja419wnjJk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bika.ai%2flicense@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7521321},"main":"index.js","napi":{"targets":["x86_64-pc-windows-msvc","x86_64-apple-darwin","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","aarch64-unknown-linux-gnu","i686-pc-windows-msvc","armv7-unknown-linux-gnueabihf","aarch64-apple-darwin","aarch64-linux-android","x86_64-unknown-freebsd","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-linux-androideabi","wasm32-wasip1-threads"],"binaryName":"license"},"types":"./index.d.ts","engines":{"node":">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"},"gitHead":"7d3e051351abfa609842a19b2e0ffd007af16637","scripts":{"lint":"oxlint .","test":"ava","bench":"node --import @oxc-node/core/register benchmark/bench.ts","build":"napi build --platform --release","format":"run-p format:prettier format:rs format:toml","prepare":"husky","version":"napi version","artifacts":"napi artifacts","format:rs":"cargo fmt","build:debug":"napi build --platform","format:toml":"taplo format","prepublishOnly":"napi prepublish -t npm","format:prettier":"prettier . -w"},"_npmUser":{"name":"vikainc","email":"dev@vikadata.com"},"prettier":{"semi":false,"printWidth":120,"arrowParens":"always","singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/mr-kelly/bika-license2.git","type":"git"},"_npmVersion":"10.9.2","description":"Bika.ai License","directories":{},"lint-staged":{"*.toml":["taplo format"],"*.@(js|ts|tsx)":["oxlint --fix"],"*.@(js|ts|tsx|yml|yaml|md|json)":["prettier --write"]},"_nodeVersion":"22.17.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"yarn@4.9.2","readmeFilename":"README.md","devDependencies":{"ava":"^6.4.1","chalk":"^5.4.1","husky":"^9.1.7","oxlint":"^1.8.0","prettier":"^3.6.2","tinybench":"^4.0.1","@taplo/cli":"^0.7.0","typescript":"^5.8.3","@types/node":"^24.2.0","lint-staged":"^16.1.2","@emnapi/core":"^1.4.5","@napi-rs/cli":"^3.0.3","npm-run-all2":"^8.0.4","@oxc-node/core":"^0.0.30","@emnapi/runtime":"^1.4.5","@tybys/wasm-util":"^0.10.0"},"optionalDependencies":{"@bika.ai/license-darwin-x64":"1.0.0","@bika.ai/license-freebsd-x64":"1.0.0","@bika.ai/license-wasm32-wasi":"1.0.0","@bika.ai/license-darwin-arm64":"1.0.0","@bika.ai/license-android-arm64":"1.0.0","@bika.ai/license-linux-x64-gnu":"1.0.0","@bika.ai/license-linux-x64-musl":"1.0.0","@bika.ai/license-win32-x64-msvc":"1.0.0","@bika.ai/license-linux-arm64-gnu":"1.0.0","@bika.ai/license-win32-ia32-msvc":"1.0.0","@bika.ai/license-android-arm-eabi":"1.0.0","@bika.ai/license-linux-arm64-musl":"1.0.0","@bika.ai/license-win32-arm64-msvc":"1.0.0","@bika.ai/license-linux-arm-gnueabihf":"1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/license_1.0.0_1754662732412_0.437891762737449","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bika.ai/license","version":"1.0.1","description":"Bika.ai License","main":"index.js","repository":{"type":"git","url":"git+https://github.com/mr-kelly/bika-license2.git"},"license":"MIT","keywords":["napi-rs","NAPI","N-API","Rust","node-addon","node-addon-api"],"napi":{"binaryName":"license","targets":["x86_64-pc-windows-msvc","x86_64-apple-darwin","x86_64-unknown-linux-gnu","x86_64-unknown-linux-musl","aarch64-unknown-linux-gnu","i686-pc-windows-msvc","armv7-unknown-linux-gnueabihf","aarch64-apple-darwin","aarch64-linux-android","x86_64-unknown-freebsd","aarch64-unknown-linux-musl","aarch64-pc-windows-msvc","armv7-linux-androideabi","wasm32-wasip1-threads"]},"engines":{"node":">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"scripts":{"artifacts":"napi artifacts","bench":"node --import @oxc-node/core/register benchmark/bench.ts","build":"napi build --platform --release","build:debug":"napi build --platform","format":"run-p format:prettier format:rs format:toml","format:prettier":"prettier . -w","format:toml":"taplo format","format:rs":"cargo fmt","lint":"oxlint .","prepublishOnly":"napi prepublish -t npm","test":"ava","version":"napi version","prepare":"husky"},"dependencies":{"@napi-rs/wasm-runtime":"^1.0.3"},"devDependencies":{"@emnapi/core":"^1.4.5","@emnapi/runtime":"^1.4.5","@napi-rs/cli":"^3.0.3","@oxc-node/core":"^0.0.30","@taplo/cli":"^0.7.0","@tybys/wasm-util":"^0.10.0","@types/node":"^24.2.0","ava":"^6.4.1","chalk":"^5.4.1","husky":"^9.1.7","lint-staged":"^16.1.2","npm-run-all2":"^8.0.4","oxlint":"^1.8.0","prettier":"^3.6.2","tinybench":"^4.0.1","typescript":"^5.8.3"},"lint-staged":{"*.@(js|ts|tsx)":["oxlint --fix"],"*.@(js|ts|tsx|yml|yaml|md|json)":["prettier --write"],"*.toml":["taplo format"]},"ava":{"extensions":{"ts":"module"},"timeout":"2m","workerThreads":false,"environmentVariables":{"OXC_TSCONFIG_PATH":"./__test__/tsconfig.json"},"nodeArguments":["--import","@oxc-node/core/register"]},"prettier":{"printWidth":120,"semi":false,"trailingComma":"all","singleQuote":true,"arrowParens":"always"},"packageManager":"yarn@4.9.2","optionalDependencies":{"@bika.ai/license-win32-x64-msvc":"1.0.1","@bika.ai/license-darwin-x64":"1.0.1","@bika.ai/license-linux-x64-gnu":"1.0.1","@bika.ai/license-linux-x64-musl":"1.0.1","@bika.ai/license-linux-arm64-gnu":"1.0.1","@bika.ai/license-win32-ia32-msvc":"1.0.1","@bika.ai/license-linux-arm-gnueabihf":"1.0.1","@bika.ai/license-darwin-arm64":"1.0.1","@bika.ai/license-android-arm64":"1.0.1","@bika.ai/license-freebsd-x64":"1.0.1","@bika.ai/license-linux-arm64-musl":"1.0.1","@bika.ai/license-win32-arm64-msvc":"1.0.1","@bika.ai/license-android-arm-eabi":"1.0.1","@bika.ai/license-wasm32-wasi":"1.0.1"},"_id":"@bika.ai/license@1.0.1","gitHead":"cd9ea9ba3ac1fac892ac747431747074c16b7929","types":"./index.d.ts","bugs":{"url":"https://github.com/mr-kelly/bika-license2/issues"},"homepage":"https://github.com/mr-kelly/bika-license2#readme","_nodeVersion":"22.17.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-t1qOvgvuCFmO/c+kEZRG7GUTbjSsSlHZEMpzZD8Bqd9YLuec4/mN5kq4rjgZjeUVbILcCg/i9uBJQWrn5ionBg==","shasum":"c059e4e14789b421dfaae0621047a2cb3261fedd","tarball":"https://registry.npmjs.org/@bika.ai/license/-/license-1.0.1.tgz","fileCount":21,"unpackedSize":7498021,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@bika.ai%2flicense@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB+iLfvyShDRXYi+g0+6wrBKsU0MDOfIpQTVudwZ3jpEAiBWb4TGtlGBmRhm2y6qgqJFViW2Y6zh4EqSwG9PA6yD1g=="}]},"_npmUser":{"name":"vikainc","email":"dev@vikadata.com"},"directories":{},"maintainers":[{"name":"vikainc","email":"dev@vikadata.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/license_1.0.1_1754669111738_0.49881584145316316"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-16T10:18:42.448Z","modified":"2025-08-08T16:05:12.408Z","0.0.1":"2024-07-13T13:04:26.300Z","0.0.3":"2024-07-16T10:18:42.843Z","0.0.4":"2024-07-16T10:29:11.637Z","0.0.5":"2024-07-16T10:39:54.982Z","1.0.0":"2025-08-08T14:18:52.670Z","1.0.1":"2025-08-08T16:05:12.020Z"},"license":"MIT","maintainers":[{"name":"vikainc","email":"dev@vikadata.com"}],"readme":"# `@napi-rs/package-template`\n\n![https://github.com/napi-rs/package-template/actions](https://github.com/napi-rs/package-template/workflows/CI/badge.svg)\n\n> Template project for writing node packages with napi-rs.\n\n# Usage\n\n1. Click **Use this template**.\n2. **Clone** your project.\n3. Run `yarn install` to install dependencies.\n4. Run `yarn napi rename -n [@your-scope/package-name] -b [binary-name]` command under the project folder to rename your package.\n\n## Install this test package\n\n```\nyarn add @napi-rs/package-template\n```\n\n## Ability\n\n### Build\n\nAfter `yarn build/npm run build` command, you can see `package-template.[darwin|win32|linux].node` file in project root. This is the native addon built from [lib.rs](./src/lib.rs).\n\n### Test\n\nWith [ava](https://github.com/avajs/ava), run `yarn test/npm run test` to testing native addon. You can also switch to another testing framework if you want.\n\n### CI\n\nWith GitHub Actions, each commit and pull request will be built and tested automatically in [`node@20`, `@node22`] x [`macOS`, `Linux`, `Windows`] matrix. You will never be afraid of the native addon broken in these platforms.\n\n### Release\n\nRelease native package is very difficult in old days. Native packages may ask developers who use it to install `build toolchain` like `gcc/llvm`, `node-gyp` or something more.\n\nWith `GitHub actions`, we can easily prebuild a `binary` for major platforms. And with `N-API`, we should never be afraid of **ABI Compatible**.\n\nThe other problem is how to deliver prebuild `binary` to users. Downloading it in `postinstall` script is a common way that most packages do it right now. The problem with this solution is it introduced many other packages to download binary that has not been used by `runtime codes`. The other problem is some users may not easily download the binary from `GitHub/CDN` if they are behind a private network (But in most cases, they have a private NPM mirror).\n\nIn this package, we choose a better way to solve this problem. We release different `npm packages` for different platforms. And add it to `optionalDependencies` before releasing the `Major` package to npm.\n\n`NPM` will choose which native package should download from `registry` automatically. You can see [npm](./npm) dir for details. And you can also run `yarn add @napi-rs/package-template` to see how it works.\n\n## Develop requirements\n\n- Install the latest `Rust`\n- Install `Node.js@10+` which fully supported `Node-API`\n- Install `yarn@1.x`\n\n## Test in local\n\n- yarn\n- yarn build\n- yarn test\n\nAnd you will see:\n\n```bash\n$ ava --verbose\n\n  ✔ sync function from native code\n  ✔ sleep function from native code (201ms)\n  ─\n\n  2 tests passed\n✨  Done in 1.12s.\n```\n\n## Release package\n\nEnsure you have set your **NPM_TOKEN** in the `GitHub` project setting.\n\nIn `Settings -> Secrets`, add **NPM_TOKEN** into it.\n\nWhen you want to release the package:\n\n```\nnpm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]\n\ngit push\n```\n\nGitHub actions will do the rest job for you.\n","readmeFilename":"README.md","description":"Bika.ai License","homepage":"https://github.com/mr-kelly/bika-license2#readme","keywords":["napi-rs","NAPI","N-API","Rust","node-addon","node-addon-api"],"repository":{"type":"git","url":"git+https://github.com/mr-kelly/bika-license2.git"},"bugs":{"url":"https://github.com/mr-kelly/bika-license2/issues"}}