bnut top-level constant

BnutCodec const bnut

An instance of the default implementation of the BnutCodec.

This instance provides a convenient access to the most common bnut use cases.

Examples:

var encoded = bnut.encode('print("hello")');
var decoded = bnut.decode(encoded);

The top-level bnutEncode and bnutDecode functions may be used instead if a local variable shadows the bnut constant.

Implementation

const BnutCodec bnut = BnutCodec();