UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

4 lines (3 loc) 94 B
export function stringToBuffer(str) { return Buffer.from(str.replace('0x', ''), 'hex'); }