Socket
Book a DemoInstallSign in
Socket

@nabla/tnode

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nabla/tnode

Simple node wrapper that runs esbuild on TS files

latest
Source
npmnpm
Version
0.9.0
Version published
Maintainers
3
Created
Source

tnode npm

Simple node wrapper that runs esbuild on TS files.

Install

npm i -D @nabla/tnode
  • For esbuild@0.17 use @nabla/tnode@0.9 (latest)
  • For esbuild@0.16 use @nabla/tnode@0.8
  • For esbuild@0.15 use @nabla/tnode@0.7

Usage in package.json scripts

{
  "scripts": {
    "codegen": "tnode scripts/codegen.ts"
  }
}

Usage with Jest

Add in package.json

{
  "jest": {
    "rootDir": "src",
    "transform": {
      "\\.ts": "@nabla/tnode/jest"
    }
  }
}

Usage in independent scripts

npm i -g @nabla/tnode
#!/usr/bin/env tnode

console.log("It just works!");

Keywords

node

FAQs

Package last updated on 15 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts