node:punycode
#Import
import punycode from "nstdlib/node/punycode";Note
Behaves like Node.js.
#Support
- nstd: 1/1 of Node's own eligible tests pass under nstd.
- Browser: Loads with a minimal
processobject. 6 of Node's 6 exports are available. 1 of 1 behavior checks match Node.js.
#Exports (6)
Every name Node.js exports from this module, and what you get when you read it, as a named import or as a property of the default import:
- ✅ A value, both ways. An export that throws an error naming the missing feature also counts.
- ⚠️ A value one way,
undefinedthe other. - ❔
undefinedboth ways. - ❌ Not exported at all.
- – Not measured.
| Export | Node.js | Browser |
|---|---|---|
decode | ✅ | ✅ |
encode | ✅ | ✅ |
toASCII | ✅ | ✅ |
toUnicode | ✅ | ✅ |
ucs2 | ✅ | ✅ |
version | ✅ | ✅ |
#Diagnostics
nstdlib running inside Node.js. This isn't an environment it's meant for, so it isn't shown above, but it tells a library problem from an environment one:
coverage: 6/6 of the host's export names answer inside host node. Behaviour verified against the host builtin.smoke: Imports in a clean child process.