npm.io
2.1.1 • Published 3 months agoCLI

create-nodew-exe

Licence
MIT
Version
2.1.1
Deps
1
Size
9 kB
Vulns
0
Weekly
0
Stars
43

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.