MCPcopy Index your code
hub / github.com/formatjs/formatjs / getNativePackageCandidates

Function getNativePackageCandidates

packages/cli-lib/native.ts:74–80  ·  view source on GitHub ↗
(
  platform: NodeJS.Platform = process.platform,
  arch: string = process.arch
)

Source from the content-addressed store, hash-verified

72}
73
74export function getNativePackageCandidates(
75 platform: NodeJS.Platform = process.platform,
76 arch: string = process.arch
77): string[] {
78 const platformArch = `${platform}-${arch}`
79 return NATIVE_PACKAGES[platformArch] || []
80}
81
82export function loadNative(): NativeBinding {
83 if (nativeBinding !== undefined) {

Callers 2

loadNativeFunction · 0.85
native.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected