Skip to content

s-h-a-d-o-w/create-nodew-exe

Repository files navigation

npm version License: MIT

create-nodew-exe

Use v1 for legacy node versions!

Creates an executable based on node.exe that will not show a terminal on launch (sometimes also called "silent mode").

Credit for originally discovering how to do this goes to: @ukoloff (who came up with it for his project nvm$)

Usage

The conversion can be done on any platform, Windows is not required.

Either through the CLI, e.g.:

pnpm add --global create-nodew-exe
create-nodew-exe <src> <dst>

... or locally in your project:

pnpm add -D create-nodew-exe
import { createNodewExe } from "create-nodew-exe";

createNodewExe({
  src: 'path/to/source',
  dst: 'path/to/destination',
});

Notes

To see it in action, check out Spotify Ad Blocker.

Windows users may experience issues with wrong icons being displayed due to caching. See notes on ie4uinit here.