MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / getPunycode

Function getPunycode

src/pkg/utils/punycode.test.ts:4–6  ·  view source on GitHub ↗
(x: string)

Source from the content-addressed store, hash-verified

2import { decodePunycode } from "./punycode";
3
4const getPunycode = (x: string) => {
5 return new URL(`http://${x}.io`).hostname.slice(0, -3);
6};
7
8describe.concurrent("punycode - decode only", () => {
9 it.concurrent("basic", () => {

Callers 1

punycode.test.tsFile · 0.85

Calls 1

sliceMethod · 0.45

Tested by

no test coverage detected