UNPKG
shuffle-buffer
Version:
latest (1.0.1)
1.0.1
1.0.0
shuffle buffer
github.com/jbenet/node-shuffle-buffer
jbenet/node-shuffle-buffer
shuffle-buffer
/
try.js
5 lines
(4 loc)
•
115 B
JavaScript
View Raw
1
2
3
4
5
var
shuffle =
require
(
'./'
)
var
buf1 =
new
Buffer
(
'abcdefg'
)
var
buf2 =
shuffle
(buf1)
console
.
log
(buf2.
toString
())