UNPKG

ascii-chr

Version:
13 lines (11 loc) 411 B
const r = String.fromCharCode, o = ((o = 257) => { const t = []; for (;o > 0; ) t[o -= 1] = r(255 & o); return t; })(), t = ((o = 2048) => { const t = []; for (t[o] = '\0'; o > 128; ) t[o -= 1] = r(192 | o >> 6 & 31, 128 | 63 & o); for (;o > 0; ) t[o -= 1] = r(o); return t; })(), n = String.fromCodePoint; export { r as charCode, o as charCodes, t as charCodes2, n as codePoint };