Module

std/encoding/mod.ts

Deno standard library
Go to Latest
import * as mod from "https://deno.land/std@0.34.0/encoding/mod.ts";

Functions

Decode decodes src into decodedLen(src.length) bytes returning the actual number of bytes written to dst. Decode expects that src contains only hexadecimal characters and that src has even length. If the input is malformed, Decode returns the number of bytes decoded before the error.

DecodeString returns the bytes represented by the hexadecimal string s. DecodeString expects that src contains only hexadecimal characters and that src has even length. If the input is malformed, DecodeString will throws an error.

Encode encodes src into encodedLen(src.length) bytes of dst. As a convenience, it returns the number of bytes written to dst but this value is always encodedLen(src.length). Encode implements hexadecimal encoding.

EncodeToString returns the hexadecimal encoding of src.

Csv parse helper to manipulate data. Provides an auto/custom mapper for columns and parse function for columns and rows.

Parses content as single YAML document.

Serializes object as a YAML document.

Interfaces

HeaderOptions provides the column definition and the parse function for each entry of the column.