Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nlib/tsm

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlib/tsm - npm Package Compare versions

Comparing version 0.1.4 to 1.0.0

4

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.1.4",
"version": "1.0.0",
"license": "Apache-2.0",

@@ -25,3 +25,3 @@ "author": {

],
"main": "./loader.mjs",
"main": "./register.mjs",
"bin": {

@@ -28,0 +28,0 @@ "tsm-test": "./test.mjs",

@@ -17,6 +17,6 @@ # @nlib/tsm

```
node --experimental-loader=@nlib/tsm path/to/your/script.mts
node --import=@nlib/tsm path/to/your/script.mts
```
[`loader.mjs`](./loader.mjs) is a [Loader](https://nodejs.org/api/esm.html#loaders) to customize the default module resolution. It exports the [`load`](https://nodejs.org/api/esm.html#loadurl-context-nextload) function that loads modules with [esbuild](https://esbuild.github.io/).
`@nlib/tsm` exports `register.mjs` which [registers](https://nodejs.org/api/module.html#moduleregisterspecifier-parenturl-options) `loader.mjs`. `loader.mjs` is a [loader](https://nodejs.org/api/esm.html#loaders) to customize the default module resolution. It exports the [`load`](https://nodejs.org/api/esm.html#loadurl-context-nextload) function that loads modules with [esbuild](https://esbuild.github.io/).

@@ -27,3 +27,3 @@ ## Usage: Run test files

The `tsm-test` will search for the test file for you and pass it to `node --test`.
The `tsm-test` will search for the test files for you and pass them to `node --test`.

@@ -30,0 +30,0 @@ ```sh

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