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

ts-folder-check

v1.0.3

Published

Scoped TypeScript error checker — type-checks only the given folder(s) instead of the whole project

Readme

ts-folder-check

Scoped TypeScript error checker. Type-checks only the specified folder(s) instead of the whole project, so it runs much faster than a full tsc --noEmit on a large codebase or monorepo.

Install

# bun
bun add -d ts-folder-check

# npm
npm install -D ts-folder-check

typescript (6.0.3) is a dependency.

Usage

Run from the project root (where your tsconfig.json lives), passing one or more folder paths relative to the root:

ts-folder-check <folder> [folder2]... [--include <dir[,dir2]>]

Examples:

bunx ts-folder-check <relative-folder-path>

# multiple folders
bunx ts-folder-check <relative-folder-path> <relative-folder-path>

# project has global .d.ts files (e.g. vite-env.d.ts) outside the target folders
bunx ts-folder-check <relative-folder-path> --include types

Or as a package.json script:

{
  "scripts": {
    "ts-folder-check": "ts-folder-check --include types"
  }
}
bun ts-folder-check <folder>

# with npm, extra arguments need "--"
npm run ts-folder-check -- <folder>

Options

| Option | Description | | ----------------- | -------------------------------------------------------------------------------------------------------- | | --include <dir> | Extra folder(s) with global .d.ts files that must be loaded but not type-checked. Comma-separated list. |

What it does

  • Uses the TypeScript Compiler API directly (no bunx/npx spawning, so no Windows/shell issues).
  • Reads the nearest tsconfig.json, so path aliases resolve correctly.
  • Type-checks only the files inside the target folder(s); imported files are parsed for types but not deeply checked (10x+ faster on a large project).
  • Caches results incrementally in .tscheck/ — repeated runs on the same folder are faster. Add .tscheck/ to your .gitignore.
  • Exits with code 1 if errors are found, 0 otherwise. Config or path problems are reported clearly, never hidden.

License

MIT