tsx 4.x
Use tsx v4 as a Node-compatible TypeScript loader, or use its documented ESM/CJS Developer APIs from a plain script. Covers v4 changes, dynamic loading, scoped registration, and the boundary between the API and the tsx CLI.
- For
tsx@4.23.13- Verified
- 2026-09-07, 2 examples executed
- Package
@modootoday/pmcp-tsx@4.0.0
What it covers
- Scope
- v4 corrections
- CLI usage
- Package entry points
- Dynamic ESM loading: `tsx/esm/api`
- Enhanced CommonJS loading: `tsx/cjs/api`
- Scoped CJS registration
- Scoped ESM registration
- CLI-only features
- Standalone-runtime limitation
- Does not cover
One example from this skill
This is the skill's own text, not a summary of it. It runs: that is what verifying means here.
import { register } from 'tsx/cjs/api'
import assert from 'node:assert/strict'
const unregister = register()
assert.equal(typeof unregister, 'function')
unregister()
What it did in the sandbox
Verifying this skill meant installing the package and running code against it with no route out. Nothing was observed. The full ledger lists every package examined, including the ones that never became a skill.
Nothing observed is not a finding of safety. It means one run, under one policy, produced nothing to report.
Getting it
With a subscription:
npx -y @modootoday/pmcp login
npx -y @modootoday/pmcp install @modootoday/pmcp-tsx
It installs as a dev dependency of your project, and the MCP server finds it there like any other skill.