Encodes a record of key-value string pairs into an array of Buffer objects, where each buffer contains a string in the format "key=value".
"key=value"
An object whose string keys and values will be encoded. Defaults to an empty object.
An array of Buffer instances, each representing one "key=value" pair.
encodeTXT({ foo: "bar", baz: "qux" })// [Buffer.from("foo=bar"), Buffer.from("baz=qux")] Copy
encodeTXT({ foo: "bar", baz: "qux" })// [Buffer.from("foo=bar"), Buffer.from("baz=qux")]
Encodes a record of key-value string pairs into an array of Buffer objects, where each buffer contains a string in the format
"key=value"
.