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

@nogoo9/gitleaks

v8.30.1-post.2

Published

npm wrapper for gitleaks — find secrets in git repos

Readme

@nogoo9/gitleaks

npm version CI License: MIT

npm wrapper for gitleaks — find secrets in git repos.

Installs the correct gitleaks binary for your platform automatically via npm's optional dependencies mechanism (same pattern as esbuild). No postinstall scripts. No network calls at install time.

Installation

npm install @nogoo9/gitleaks
# or
bun add @nogoo9/gitleaks
# or
pnpm add @nogoo9/gitleaks

Usage

CLI

After installation the gitleaks binary is available via npx:

npx gitleaks detect --source .
npx gitleaks protect --staged
npx gitleaks version

Or run it directly if node_modules/.bin is on your PATH:

gitleaks detect --source .

Node.js API

import { run, getBinaryPath } from '@nogoo9/gitleaks';

// Get the path to the gitleaks binary
const bin = getBinaryPath();

// Run gitleaks programmatically
const result = await run(['detect', '--source', '.', '--exit-code', '1']);
console.log(result.stdout);
console.log('exit code:', result.exitCode);

Platform Support

The correct binary is selected automatically at install time:

| Platform | Architecture | Package | |---|---|---| | Linux | x64 | @nogoo9/gitleaks-linux-x64 | | Linux | x32 | @nogoo9/gitleaks-linux-x32 | | Linux | arm64 | @nogoo9/gitleaks-linux-arm64 | | Linux | arm (v7) | @nogoo9/gitleaks-linux-arm | | macOS | x64 | @nogoo9/gitleaks-darwin-x64 | | macOS | arm64 (M1/M2/M3) | @nogoo9/gitleaks-darwin-arm64 | | Windows | x64 | @nogoo9/gitleaks-windows-x64 | | Windows | x32 | @nogoo9/gitleaks-windows-x32 | | Windows | arm64 | @nogoo9/gitleaks-windows-arm64 |

Environment Variables

| Variable | Description | |---|---| | NOGOO9_GITLEAKS_BIN | Override the path to the gitleaks binary |

Versioning

This package version tracks the upstream gitleaks release version exactly (e.g. @nogoo9/[email protected] wraps gitleaks v8.30.1).

License

MIT — see LICENSE.

The bundled gitleaks binary is also MIT licensed — see LICENSES/gitleaks-MIT.txt.