string

ModuleIsomorphic

String conversion utilities

This module converts between strings and binary representations in several encodings.

Documentation

stringtoUTF8BufferstringstringUint8ArrayfromUTF8BufferbytesArrayBufferstringfromLatin1BufferbytesArrayBufferstringbase64ToBufferbase64stringurlfalsebooleanUint8Arraybase64FromBufferbytesArrayBufferurlfalsebooleanstringhexToBufferhexstringUint8ArrayhexFromBufferbytesArrayBufferstring

Converts between strings and binary data representations. Base 64 functions support a URL-safe encoding that removes = and replaces + and / with - and _, respectively.