For the complete documentation index, see llms.txt. This page is also available as Markdown.

TextEncoder

utils • Docs


near-sdk-js v2.0.0 / utils / TextEncoder

Class: TextEncoder

A subset of NodeJS TextEncoder API

Constructors

new TextEncoder()

new TextEncoder(): TextEncoder

Returns

TextEncoder

Methods

encode()

encode(s): Uint8Array

Parameters

• s: string

Returns

Uint8Array

Defined in

packages/near-sdk-js/src/utils.ts:299

Last updated