# is64bit

> Check whether operating system CPU architecture is 64-bit or 32-bit (Supports browsers)

Latest version **2.0.0** (published 2023-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install is64bit
pnpm add is64bit
yarn add is64bit
bun add is64bit
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2023-10-23 |
| First published | 2019-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 46 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | 64-bit, 32-bit, bitness, detect, check, arch, architecture, cpu, arm64, arm, x64, x86, browser |

## Links

- npm: https://www.npmjs.com/package/is64bit
- Repository: https://github.com/sindresorhus/is64bit
- Homepage: https://github.com/sindresorhus/is64bit#readme
- Issues: https://github.com/sindresorhus/is64bit/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is64bit

## Dependencies (1)

- [system-architecture](https://npm.io/package/system-architecture.md) ^0.1.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2023-10-23
- 1.0.2 — 2021-04-07
- 1.0.1 — 2020-08-04
- 1.0.0 — 2019-12-19

## README

# is64bit

> Check whether operating system CPU architecture is 64-bit or 32-bit

This package also works in the browser. It can be useful to serve the correct binary for download.

On Node.js, [`process.arch` / `os.arch()`](https://nodejs.org/api/process.html#processarch) is generally not useful as it returns the CPU architecture for which the Node.js binary was compiled, not the actual system architecture.

## Install

```sh
npm install is64bit
```

## Usage

```js
import {is64bit} from 'is64bit';

// On ARM64 macOS
console.log(await is64bit());
//=> true
```

## API

### is64bit()

Returns a `Promise<boolean>` for whether the operating system CPU architecture is 64-bit.

### is64bitSync()

Returns a `boolean` for whether the operating system CPU architecture is 64-bit.

**Note**: Prefer the async version for browser or cross-platform usage as it has a more reliable check.

## Related

- [system-architecture](https://github.com/sindresorhus/system-architecture) - Get the operating system CPU architecture

---
_Source: https://npm.io/package/is64bit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
