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

@xan105/innosetup

v0.1.0

Published

Compile innosetup script (.iss) to create Windows installer/setup.

Downloads

122

Readme

About

Compile innosetup script .iss to create Windows installer/setup.

This is a wrapper for Innosetup's console-mode compiler (ISCC.exe).

📖 See Innosetup documentation for more details.

📦 Scoped @xan105 packages are for my own personal use but feel free to use them.

Usage / Example

This package provides both a CLI bin and a module export.

CLI

The CLI usage is intended to be used as a npm-run command:

{
  "scripts": {
    "build": "innosetup"
  },
  "config": {
    "setup": {
      "script": "mysetup.iss",
      "filename": "mysetup"
    }
  }
}
npm run build

The following variables from your package.json are exposed to the .iss script through Inno Setup Preprocessor's define:

  • name -> #npm_package_name
  • version -> #npm_package_version
  • description -> #npm_package_description
  • homepage -> #npm_package_homepage
  • license -> #npm_package_license
  • author -> #npm_package_author
  • funding -> #npm_package_funding
  • arch -> #npm_config_arch

A default .iss script (default.iss) is shipped with this package and is used by default when you do not specify your own .iss script. You can also use it as a starting point to create your own .iss script!

💡 The default .iss script (default.iss) expects your app files to be located inside build/app/ and your main executable to be named as npm_package_name + .exe.

The CLI bin can be configured using package.json's config field:

  • setup.script (default.iss): Path to the .iss script.
  • setup.dir (build): Output file(s) to specified dir path.
  • setup.filename (mysetup): Specifies an output filename.
  • setup.quiet (false): Quiet compile (print error messages only).

Module

The module export exposes the JS wrapper used by the CLI bin.

import { compile } from "@xan105/innosetup";

await compile("mysetup.iss", {
    dir: "./build",
    filename: "mysetup",
    quiet: false,
    define: {
      author: "xan105", 
      arch: "x64"
    }
  });

Install

As a dev dependency:

npm install -D @xan105/innosetup

As a dependency:

npm install @xan105/innosetup

⚠️ This package doesn't have any installation restrictions in its package.json file to facilitate multi-platform development; however, it is at the moment only designed to work on Windows.

API

⚠️ This module is only available as an ECMAScript module (ESM).

Named export

compile(script: string, option?: object) Promise<void>

Compile given innosetup script using Innosetup's console-mode compiler (ISCC.exe).

⚠️ The Innosetup compiler runs only on Windows!

Options:

  • dir?: string ("./build")

    Output file(s) to specified dir path.

  • filename?: string (mysetup)

    Specifies an output filename.

  • define?: {key:value, ...} (none)

    Expose variable(s) to the .iss script through Inno Setup Preprocessor's define.

    eg: {foo:bar} => #define public foo "bar"

    [Setup]
    AppName={#foo} ;"bar"
  • quiet?: boolean (false)

    Quiet compile (print error messages only).

  • stdout?: function (none)

    Callback to receive ISCC.exe stdout as string (data chunk).

  • stderr?: function (none)

    Callback to receive ISCC.exe stderr as string (data chunk).

Return

✔️ The promise resolves when the compilation was successful.

❌ The promise rejects when the compilation failed or something unexpected went wrong.