npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nexe-deploy-utils

v1.1.15

Published

Simple deployment utilties using NEXE

Downloads

107

Readme

DeployUtils

Designed to be a very simple way to deploy a windows application. The tools are written in typescript.

Usage

  1. Include the dependencies.
npm i nexe nexe-deploy-utils
  1. Create a TS or JS main file for your node application, and add in some build steps:
import { Engine, write } from 'nexe-deploy-utils';

(async() => {
    let engine = new Engine();
    await engine.describe('my sample package')
        .step(() => write('This is step 1 in the deployment.'))
        .exec();
})();

That's it! You can test it by running 'node index.js'.

A more Useful Example

Say you had a few steps that looked like this:

(async () => {

    let engine = new Engine();
    await engine.describe("Install Example Product")
        .step(() => unpack('./resources/samplezip.zip', 'release.zip'), "Unpacking Release Zip")
        .step(() => unzip('release.zip', 'release'), "Unzipping Release")
        .step(() => copy('release/example.txt', 'release/test.txt'), 'Copying Configuration')
        .step(() => stopService('bthserv'), 'Stopping Bluetooth Service')
        .step(() => startService('bthserv'), 'Starting Bluetooth Service')
        .exec();

})();

So in order to create a useful "install.exe", we'll need to tell nexe to package up the zip file inside of our resources folder. We can do that by the following NPM script:

"build": "nexe -r resources/samplezip.zip -o dist/install.exe"

And now we can run 'npm run build' to create our dist/install.exe file.

Running the install.exe as an administrator produces this output:

Install Example Product - 5 steps.
Build Step 1: Unpacking Release Zip... success
Build Step 2: Unzipping Release... success
Build Step 3: Copying Configuration... success
Build Step 4: Stopping Bluetooth Service... success
Build Step 5: Starting Bluetooth Service... success

And we have successfully deployed our application!

Features

Similar to 'write', as shown above, other deployment tools exist for the developer.

Basic Tools

  • copy: Copies folders and files to a new location.

  • write: Just a simple console logging tool that has some options for colors and newline characters.

  • unpack: Unpacks a nexe-packed file inside of your executable to a new location. You can pack a file into your nexe-build executable using the '-r' switch.

note: Nexe uses globby for glob parsing. You can include multiple files with brackets: "{./fileone,./filetwo}".

  • unzip: Unzips a zip file to a new location.

  • assert: Fails if your assert expression returns false.

  • killAll: Given a folder, kills all processes that have a handle (or file lock) on the folder's children. This tool uses handle.

note: To use killall, you must add handle64 (located in ./node_modules/nexe-deploy-utils/bin/handle64) and unpack it as './handle64.exe'.

  • mkdir: Makes directories (and sub directories) using the windows 'mkdir' command. This is similar to linux 'mkdir -p'.

IIS Tools

  • addSSL: Adds an SSL certificate to an IIS port. Affects all websites running under that port.

  • deleteSite: Deletes an IIS website.

  • newApp: Adds a new application under an existing IIS website.

  • newSite: Adds an IIS website.

  • startSite Starts an IIS website. However, sites should auto-start on addition if they are configured correctly.

  • newAppPool: Adds an application pool into IIS.

Service Tools

  • deleteService: Deletes a windows service.

  • newService: Adds a new windows service.

  • startService: Starts a windows service.

  • stopService: Stops a windows service.

More features to come!