Skip to content

stefanpenner/node-string2buffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-string2buffer

var s2b = require('string2buffer')

s2b('') instanceof Uint8Array // => true
s2b('asdf') instanceof Uint8Array // => true
var b2s = require('string2buffer').bufferToString;

typeof b2s(new UInt8Array(), 0, 0) === 'string' // => true
b2s(new Uint8Array([97,98,99,100], 0, 4) === 'abcd' // => true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published