feat: init
This commit is contained in:
16
node_modules/is64bit/index.js
generated
vendored
Normal file
16
node_modules/is64bit/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import {systemArchitecture, systemArchitectureSync} from 'system-architecture';
|
||||
|
||||
const archtectures64bit = new Set([
|
||||
'arm64',
|
||||
'x64',
|
||||
'ppc64',
|
||||
'riscv64',
|
||||
]);
|
||||
|
||||
export async function is64bit() {
|
||||
return archtectures64bit.has(await systemArchitecture());
|
||||
}
|
||||
|
||||
export function is64bitSync() {
|
||||
return archtectures64bit.has(systemArchitectureSync());
|
||||
}
|
||||
Reference in New Issue
Block a user