UNPKG

utf16le-encoding

Version:

UTF16-le encoding, a.k.a. UCS2 encoding, an encoding you probably should never use.

15 lines (14 loc) 288 B
/* IMPORT */ import Buffer from 'node-buffer-encoding'; /* MAIN */ const Node = { /* API */ encode: (data) => { return Buffer.encode(data, 'utf16le'); }, decode: (data) => { return Buffer.decode(data, 'utf16le'); } }; /* EXPORT */ export default Node;