Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

buffer-reverse

1.0.1 • Public • Published

buffer-reverse

NPM TRAVIS

js-standard-style

A lite module for byte reverse on buffers.

Examples

var reverse = require("buffer-reverse")
var a = new Buffer('00ff0f', 'hex')
 
console.log(reverse(a))
// => <Buffer 0f ff 00>

Or for those seeking those few extra cycles, perform the operation in place:

var reverseInplace = require("buffer-reverse/inplace")
var a = new Buffer('00ff0f', 'hex')
 
console.log(reverseInplace(a))
// => <Buffer 0f ff 00>
 
// See that a has been mutated
console.log(a)
// => <Buffer 0f ff 00>

License MIT

install

npm i buffer-reverse

Downloadsweekly downloads

3,329

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability