Socket
Socket
Sign inDemoInstall

tsx

Package Overview
Dependencies
4
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.0 to 3.2.1

dist/package-48073ced.js

2

dist/repl.js

@@ -1,3 +0,3 @@

import c from"repl";import{transform as l}from"@esbuild-kit/core-utils";import{v as m}from"./package-cafa1db4.js";console.log(`Welcome to tsx v${m} (Node.js ${process.version}).
import c from"repl";import{transform as l}from"@esbuild-kit/core-utils";import{v as m}from"./package-48073ced.js";console.log(`Welcome to tsx v${m} (Node.js ${process.version}).
Type ".help" for more information.`);const o=c.start(),{eval:i}=o,f=async function(e,r,t,s){const n=await l(e,".ts").catch(a=>(console.log(a.message),{code:`
`}));return i.call(this,n.code,r,t,s)};o.eval=f;
{
"name": "tsx",
"version": "3.2.0",
"version": "3.2.1",
"description": "Node.js runtime enhanced with esbuild for loading TypeScript & ESM",

@@ -25,2 +25,3 @@ "keywords": [

"exports": {
"./cli": "./dist/cli.js",
"./repl": "./dist/repl.js"

@@ -27,0 +28,0 @@ },

@@ -82,6 +82,8 @@ # tsx

They are both tools to run TypeScript files and start a TypeScript REPL.
They are both tools to run TypeScript files.
The main difference is that `tsx` is powered by [esbuild](https://esbuild.github.io/) for blazing fast compilation. But because it uses esbuild, it doesn't type check like ts-node.
The main difference is that `tsx` is powered by [esbuild](https://esbuild.github.io/) for blazing fast TypeScript compilation. Whereas `ts-node` uses the TypeScript compiler, [which is not as fast](https://esbuild.github.io/faq/#:~:text=typescript%20benchmark).
Because esbuild doesn't do type checking, `tsx` is more equivalent to `ts-node --transpileOnly`.
If you migrated from `ts-node`, please share your performance gains [here](https://github.com/esbuild-kit/tsx/discussions/10)!

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc