Socket
Socket
Sign inDemoInstall

@nabla/tnode

Package Overview
Dependencies
1
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nabla/tnode


Version published
Weekly downloads
300
decreased by-47.83%
Maintainers
3
Install size
8.79 MB
Created
Weekly downloads
 

Changelog

Source

0.9.0

  • Bump esbuild to 0.17

Readme

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc