# to-unsigned-int32

> convert to number of 32 bit buffer

Latest version **1.1.0** (published 2015-07-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-unsigned-int32
pnpm add to-unsigned-int32
yarn add to-unsigned-int32
bun add to-unsigned-int32
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-07-16 |
| First published | 2015-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ichetandhembre |
| Maintainers | ichetandhembre |
| Keywords | uint32, integer, Buffer |

## Links

- npm: https://www.npmjs.com/package/to-unsigned-int32
- Repository: https://github.com/chetandhembre/to-unsigned-int32
- Issues: https://github.com/chetandhembre/to-unsigned-int32/issues
- npm.io page: https://npm.io/package/to-unsigned-int32

## Dependencies (1)

- [dezalgo](https://npm.io/package/dezalgo.md) ^1.0.3

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2015-07-16
- 2.0.1 — 2015-07-16
- 2.0.0 — 2015-07-16
- 1.0.1 — 2015-07-02
- 1.0.0 — 2015-07-02

## README

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

convert number to 32 bit buffer (size 8 byte).

Currently only support [big endian](https://en.wikipedia.org/wiki/Endianness#Big-endian).

also checkout [from-unsigned-int32](https://github.com/chetandhembre/from-unsigned-int32).


## Install

```
npm i to-unsigned-int32
```
## Usage
```js
var toUInt32 = require('to-unsigned-int32')

toUInt32(12, function (err, res) {
	console.log(res) //<Buffer 00 00 00 0c>
})

```
Module only support async api. 

`n` can be number in any base.

`callback` get two arguments:

1. An error object.

2. Buffer with length of 4.

## licence
===
MIT

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