• Convert a string to bytes

    Parameters

    • content: string

      the string context

    Returns Bytes

    Example


    import * as text from 'text';
    let value = text.bytes('I want to be binary');