/**
 * Bytes to encode to VT100 control sequence.
 *
 * @param {String} code Control code that you want to encode
 * @returns {Buffer} Returns encoded bytes
 */
export const encodeToVT100 = code => `\u001b${code}`;

@@ -124,14 +124,14 @@
 ns %7B
-Buffer
+String
 %7D Re
@@ -148,13 +148,14 @@
 ded 
-bytes
+string
 %0A */
@@ -196,21 +196,21 @@
  =%3E 
-%60
+'
 %5Cu001b
-$%7B
+' + 
 code
-%7D%60
 ;%0A

Change template string to concatenation