UNPKG

secure-peer

Version:

peer-to-peer encrypted streams using public key cryptography and signing

6 lines (5 loc) 132 B
module.exports = function toBuffer (str) { return typeof str === 'string' ? new Buffer(str, 'binary') : str; };