napi-rs/triples
2024-03-03 20:07:42 +08:00
..
CHANGELOG.md chore(release): publish 2023-12-30 00:44:20 +08:00
generate-triple-list.ts feat: integrate with emnapi (#1669) 2023-11-02 12:57:11 +08:00
index.cjs fix(cli): created template missing macOS testing (#1659) 2023-07-18 10:49:20 +08:00
index.d.ts chore: reduce published size 2021-07-22 13:35:01 +08:00
index.js feat(target): riscv64gc-unknown-linux-gnu 2023-05-25 23:38:09 +08:00
LICENSE refactor(cli): init yarn workspace, move napi-rs package => @napi-rs/cli 2020-12-02 22:34:39 +08:00
package.json ci: fix build in bun CI 2024-03-03 20:07:42 +08:00
README.md chore: reduce published size 2021-07-22 13:35:01 +08:00
target-list feat(triples): support android armv7 2021-12-02 13:11:43 +08:00
tsconfig.json feat: integrate with emnapi (#1669) 2023-11-02 12:57:11 +08:00

@napi-rs/triples

install size Downloads

Rust build triples definitions

Usage

const triples = require('@napi-rs/triples');

console.log(triples)

[
  ...
  'aarch64-apple-ios': {
    platform: 'ios',
    arch: 'arm64',
    abi: null,
    platformArchABI: 'ios-arm64',
    raw: 'aarch64-apple-ios',
  },
  'aarch64-fuchsia': {
    platform: 'fuchsia',
    arch: 'arm64',
    abi: null,
    platformArchABI: 'fuchsia-arm64',
    raw: 'aarch64-fuchsia',
  },
  'aarch64-linux-android': {
    platform: 'android',
    arch: 'arm64',
    abi: null,
    platformArchABI: 'android-arm64',
    raw: 'aarch64-linux-android',
  },
  'aarch64-pc-windows-msvc': {
    platform: 'win32',
    arch: 'arm64',
    abi: 'msvc',
    platformArchABI: 'win32-arm64-msvc',
    raw: 'aarch64-pc-windows-msvc',
  },
  'aarch64-unknown-linux-gnu': {
    platform: 'linux',
    arch: 'arm64',
    abi: 'gnu',
    platformArchABI: 'linux-arm64-gnu',
    raw: 'aarch64-unknown-linux-gnu',
  },
  'aarch64-unknown-linux-musl': {
    platform: 'linux',
    arch: 'arm64',
    abi: 'musl',
    platformArchABI: 'linux-arm64-musl',
    raw: 'aarch64-unknown-linux-musl',
  },
  'aarch64-unknown-none': {
    platform: 'none',
    arch: 'arm64',
    abi: null,
    platformArchABI: 'none-arm64',
    raw: 'aarch64-unknown-none',
  },
  'aarch64-unknown-none-softfloat': {
    platform: 'none',
    arch: 'arm64',
    abi: 'softfloat',
    platformArchABI: 'none-arm64-softfloat',
    raw: 'aarch64-unknown-none-softfloat',
  }
  ...
]