UNPKG
check-ethereum-scanner
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
Safety checks for new Ethereum tokens
check-ethereum-scanner
/
Ethereum-Renounced-Contract-Scanner
/
node_modules
/
multicodec
/
example.js
10 lines
(6 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
'use strict'
const
multicodec =
require
(
'multicodec'
)
const
prefixedProtobuf = multicodec.
addPrefix
(
'protobuf'
,
Buffer
.
from
(
'some protobuf code'
))
// eslint-disable-next-line no-console
console
.
log
(prefixedProtobuf)
// => prefixedProtobuf 0x50...