npm.io
1.0.0 • Published 11 years ago

to-unsigned-int64

Licence
MIT
Version
1.0.0
Deps
2
Vulns
1
Weekly
0

js-standard-style

convert number to 64 bit buffer (size 8).

Currently only support big endian.

also checkout to-unsigned-int32.

Install

npm i to-unsigned-int64

Usage

var toUInt64 = require('to-unsigned-int64')

console.log(toUInt64(0x1ffffffff)) //<Buffer 00 00 00 01 ff ff ff ff>

n can be number in any base.

returns buffer with length 8.

licence

MIT

Keywords