UNPKG
@saniot/kafka-header-helper
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
A package which help in making consistent kafka header.
@saniot/kafka-header-helper
/
test.js
17 lines
(14 loc)
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
{ addHeader } =
require
(
"./index"
);
const
payload = [ {
key
:
"100010010"
,
value
:
"value_1"
, }, {
key
:
"1010101010"
,
value
:
"value_2"
, }, [
1
,
2
,
3
],
"string"
, ];
console
.
dir
(
addHeader
(payload,
"test"
));