This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@polywrap/uts46-plugin-js
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

@polywrap/uts46-plugin-js

UTS46 Plugin allows Polywrap JS Client to handle internationalized domain names (IDNA), with a full mapping between Unicode and Punycode defined by UTS #46.

Usage

import { PolywrapClient } from "@polywrap/client-js";
import { uts46Plugin } from "@polywrap/uts46-plugin-js";

export async function foo({

  const uts46PluginUri = "wrap://ens/uts46.polywrap.eth";

  const client = new PolywrapClient({
    plugins: [
      {
        uri: uts46PluginUri,
        plugin: uts46Plugin({}),
      },
    ]
  });

  const response = await client.invoke<string>({
    uri: uts46PluginUri,
    method: 'toAscii',
    args: {
      value: "xn-bb-eka.at"
    }
  });
})

API

Full API in src/schema.graphql

Readme

Keywords

none

Package Sidebar

Install

npm i @polywrap/uts46-plugin-js

Weekly Downloads

1

Version

0.6.0

License

MIT

Unpacked Size

18.1 kB

Total Files

21

Last publish

Collaborators

  • dorgjelli
  • polywrap-build-bot