Socket
Socket
Sign inDemoInstall

@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


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

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc