🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

tsxx

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsxx - npm Package Compare versions

Comparing version
1.0.17
to
1.0.18
+2
-2
package.json
{
"name": "tsxx",
"version": "1.0.17",
"version": "1.0.18",
"description": "tsx + hmr for node js",

@@ -20,3 +20,3 @@ "repository": {

},
"keywords": ["hmr", "node", "hot"],
"keywords": ["hmr", "node", "tsx", "esbuild", "cjs", "esm"],
"author": "杨伟杰 <sia-fl@outlook.com> (https://github.com/sia-fl)",

@@ -23,0 +23,0 @@ "license": "MIT",

+28
-11
# tsxx <a href="https://npm.im/tsxx"><img src="https://badgen.net/npm/v/tsxx"></a> <a href="https://npm.im/tsxx"><img src="https://badgen.net/npm/dm/tsxx"></a> <a href="https://packagephobia.now.sh/result?p=tsxx"><img src="https://packagephobia.now.sh/badge?p=tsxx"></a>
install: `npm i -g tsxx` or `npm i tsxx`
tsxx is a Node.js runtime HMR (Hot Module Replacement) tool developed based on tsx. Its usage is completely identical to tsx. When using it, HMR functionality is enabled by default compared to tsx, helping you significantly speed up program restarts.
usage: `tsxx ./some-script.ts`
[read tsx README.md](https://github.com/esbuild-kit/tsx/tree/develop)
---
<div style="color: #e82274; font-size: 1.2rem;">
中文解释:
</div>
install to npm devDependencies :
```
npm i -D tsxx
```
tsxx 是基于 tsx 开发的 nodejs runtime hmr。使用方法与 tsx 完全一致。使用时相对于 tsx 默认开启 hmr 功能。帮助你大幅度增速程序重启。
global install:
```
npm i -g tsxx
```
<div style="color: #e82274; font-size: 1.2rem">
en description:
</div>
now, you can use `tsxx` command in your terminal.
```
tsxx ./src/index.ts
```
tsxx is a Node.js runtime HMR (Hot Module Replacement) tool developed based on TSX. Its usage is completely identical to TSX. When using it, HMR functionality is enabled by default compared to TSX, helping you significantly speed up program restarts.
usage:
```json
{
"scripts": {
"dev": "tsxx ./src/index.tsx"
}
}
```
[read tsx README](https://github.com/esbuild-kit/tsx/tree/develop)
# warning ⚠️⚠️⚠️⚠️
not set `"type": "module"` in `package.json`, if you use `.js`, change file extension to `.mjs` or `.cjs`
.
determining the file type helps tsx better address import issues.