Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@wansproject/strings

buzhoumountain32MIT5.0.5TypeScript support: included

String utility functions.

Ethereum, ethers, strings, utf8

readme

String Manipulation Utilities

This sub-module is part of the ethers project.

It contains functions to safely convert between UTF-8 data, strings and Bytes32 strings (i.e. "short strings").

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    toUtf8Bytes,
    toUtf8CodePoints,
    toUtf8String,

    formatBytes32String,
    parseBytes32String,

    nameprep

    // Enums

    Utf8ErrorFuncs,
    Utf8ErrorReason,

    UnicodeNormalizationForm

    // Types

    Utf8ErrorFunc,

} = require("@wansproject/strings");

License

MIT License

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

5.0.5 (2020-09-22)

5.0.13 (2020-09-11)

5.0.9 (2020-08-25)

5.0.0 (2020-06-13)

5.0.0-beta.160 (2019-11-23)

5.0.0-beta.155 (2019-09-06)

5.0.0-beta.150 (2019-08-03)

5.0.0-beta.148 (2019-08-02)

Note: Version bump only for package @wansproject/strings