Socket
Socket
Sign inDemoInstall

tsx

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsx - npm Package Compare versions

Comparing version 3.6.0 to 3.7.0

dist/package-56d4fb7e.cjs

2

dist/loader.js

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

import{r}from"./pkgroll_create-require-40666c6a.js";export*from"@esbuild-kit/esm-loader";import"module";r("@esbuild-kit/cjs-loader");
import{r}from"./pkgroll_create-require-31befa70.js";export*from"@esbuild-kit/esm-loader";import"module";r("@esbuild-kit/cjs-loader");

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

import c from"repl";import{transform as l}from"@esbuild-kit/core-utils";import{v as m}from"./package-5e172dec.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-a831ccfa.js";console.log(`Welcome to tsx v${m} (Node.js ${process.version}).
Type ".help" for more information.`);const e=c.start(),{eval:i}=e,p=async function(r,t,o,s){const n=await l(r,o,{loader:"ts"}).catch(a=>(console.log(a.message),{code:`
`}));return i.call(this,n.code,t,o,s)};e.eval=p;
{
"name": "tsx",
"version": "3.6.0",
"version": "3.7.0",
"description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",

@@ -39,5 +39,5 @@ "keywords": [

"dependencies": {
"@esbuild-kit/cjs-loader": "^2.2.1",
"@esbuild-kit/core-utils": "^2.0.1",
"@esbuild-kit/esm-loader": "^2.3.1"
"@esbuild-kit/cjs-loader": "^2.3.0",
"@esbuild-kit/core-utils": "^2.0.2",
"@esbuild-kit/esm-loader": "^2.4.0"
},

@@ -48,3 +48,3 @@ "optionalDependencies": {

"devDependencies": {
"@pvtnbr/eslint-config": "^0.23.1",
"@pvtnbr/eslint-config": "^0.26.2",
"@types/cross-spawn": "^6.0.2",

@@ -56,10 +56,11 @@ "@types/node": "^18.0.0",

"cross-spawn": "^7.0.3",
"eslint": "^8.17.0",
"eslint": "^8.19.0",
"execa": "^6.1.0",
"get-node": "^13.0.1",
"get-node": "^13.1.0",
"kolorist": "^1.5.1",
"manten": "^0.1.0",
"manten": "^0.2.1",
"pkgroll": "^1.3.1",
"semver": "^7.3.7",
"typescript": "^4.7.3"
"type-flag": "^2.2.0",
"typescript": "^4.7.4"
},

@@ -70,16 +71,4 @@ "eslintConfig": {

"tests/fixtures"
],
"rules": {
"@typescript-eslint/no-shadow": [
"error",
{
"allow": [
"test",
"describe",
"runTestSuite"
]
}
]
}
]
}
}

@@ -1,2 +0,2 @@

# tsx
# tsx <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/v/tsx"></a> <a href="https://npm.im/tsx"><img src="https://badgen.net/npm/dm/tsx"></a> <a href="https://packagephobia.now.sh/result?p=tsx"><img src="https://packagephobia.now.sh/badge?p=tsx"></a>

@@ -12,2 +12,3 @@ > _TypeScript Execute (`tsx`)_: Node.js enhanced with [esbuild](https://esbuild.github.io/) to run TypeScript & ESM files

- TypeScript REPL
- Resolves `tsconfig.json` [`paths`](https://www.typescriptlang.org/tsconfig#paths)
- Tested on Linux & Windows with Node.js v12~18

@@ -70,2 +71,5 @@

`tsx` is designed to be a drop-in replacement for `node`, so you can use it just the way you would use Node.js. All command-line arguments (with the exception of a few) are propagated to Node.js.
### Run TypeScript / ESM / CJS module

@@ -79,2 +83,11 @@

#### Custom `tsconfig.json` path
By default, `tsconfig.json` will be detected from the current working directory.
To set a custom path, use the `--tsconfig` flag:
```sh
tsx --tsconfig ./path/to/tsconfig.custom.json ./file.ts
```
### Watch mode

@@ -139,2 +152,8 @@ Run file and automatically rerun on changes:

### Why is it named `tsx`?
`tsx` stands for "TypeScript execute", similar to [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) ("Node.js package execute").
It has an unfortunate overlap with React's [TSX/JSX](https://www.typescriptlang.org/docs/handbook/jsx.html), which stands for "JavaScript XML". However, we believe the naming is appropriate for what it does.
### Does it do type-checking?

@@ -158,1 +177,10 @@

If you migrated from `ts-node`, please share your performance gains [here](https://github.com/esbuild-kit/tsx/discussions/10)!
### Can it use esbuild plugins?
No. tsx uses esbuild's [Transform API](https://esbuild.github.io/api/#transform-api), which doesn't support plugins.
### Does it have a configuration file?
No. tsx's integration with Node.js is designed to be seamless so there is no configuration.

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc