# from-unsigned-int32

> convert 32 bit buffer to integer

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

## Install

```sh
npm install from-unsigned-int32
pnpm add from-unsigned-int32
yarn add from-unsigned-int32
bun add from-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 | 2.0.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/from-unsigned-int32
- Repository: https://github.com/chetandhembre/from-unsigned-int32
- Issues: https://github.com/chetandhembre/from-unsigned-int32/issues
- npm.io page: https://npm.io/package/from-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
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K 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

## Recent versions

- 2.0.0 (latest) — 2015-07-16
- 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 32 bit buffer (size 4 byte) to number (base 10).

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

Also checkout [to-unsigned-int32](https://github.com/chetandhembre/to-unsigned-int32)
## Install

```
npm i from-unsigned-int32
```
## API

1. Async API


  ```js
  var fromUInt32 = require('from-unsigned-int32')

  fromUInt32(buffr /*<Buffer 00 20 00 00 00 00 00 0c>*/, 4, function (err, res) {
  	console.log(res) //12
  })

  ```
  `buffr` should be Buffer.

  `offset` this is optional parameter default is 0.

  `callback` get two arguments:

  1. An error object.

  2. number (base 10).

2. Sync API

```js
var fromUInt32 = require('from-unsigned-int32')

console.log(fromUInt32.fromUInt32Sync(buffr /*<Buffer 00 20 00 00 00 00 00 0c>*/), 4)  //12

```
`buffr` should be Buffer.

`offset` this is optional parameter default is 0.

returns integer

## licence

MIT

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