open-index/open-npm huggingface dataset:
npm package: @howiefh/ant-path-matcher
Description: Ant Path Matcher
Author: howiefh
Latest version: 0.0.4

![Node.js CI](https://github.com/howiefh/ant-path-matcher/actions/workflows/node.js.yml/badge.svg)

An implementation for Ant-style path patterns.

Part of this mapping code has been kindly borrowed from [Apache Ant](https://ant.apache.org/) and [Spring Framework AntPathMatcher](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/AntPathMatcher.html).

The mapping matches URLs using the following rules:

- `?` matches one character
- `*` matches zero or more characters
- `**` matches zero or more directories in a path
- `{spring:[a-z]+}` matches the regexp `[a-z]+` as a path variable named "spring"

Examples

- `com/t?st.jsp` — matches com/test.jsp but also com/tast.jsp or com/txst.jsp
- `com/*.jsp` — matches all .jsp files in the com directory
- `com/**/test.jsp` — matches all test.jsp files underneath the com path
- `org/springframework/**/*.jsp` — matches all .jsp files underneath the org/springframework path
- `org/**/servlet/bla.jsp` — matches org/springframework/servlet/bla.jsp but also org/springframework/testing/servlet/bla.jsp and org/servlet/bla.jsp
- `com/{filename:\\w+}.jsp` will match com/test.jsp and assign the value test to the filename variable

Note: a pattern and a path must both be absolute or must both be relative in order for the two to match. Therefore it is recommended that users of this implementation to sanitize patterns in order to prefix them with "/" as it makes sense in the context in which they're used.

## Install

```
npm install @howiefh/ant-path-matcher --save
```

## Usage

```
import AntPathMatcher from '@howiefh/ant-path-matcher';

var pathMatcher = new AntPathMatcher();

pathMatcher.match("/?", "/a");
pathMatcher.match("test/*", "test/t");
pathMatcher.match("/**", "/testing/testing");
pathMatcher.match("/{bla}.*", "/testing.html");
```
npm package: @howincodes/claude-code-limiter
Description: Per-user rate limits for Claude Code — share one subscription fairly
Author: howincodes
Latest version: 1.3.0

# @howincodes/claude-code-limiter

Per-user rate limits for [Claude Code](https://code.claude.com). Share one subscription across your team — with enforced quotas.

This is the **client CLI** that gets installed on each user's machine. It installs a system-level hook that checks limits on every prompt.

For the server/dashboard, see [@howincodes/claude-code-limiter-server](https://www.npmjs.com/package/@howincodes/claude-code-limiter-server).

## Install

Your admin will give you an install code and server URL:

```bash
sudo npx @howincodes/claude-code-limiter setup \
  --code CLM-alice-a8f3e2 \
  --server https://limiter.yourteam.com
```

Restart Claude Code. Done.

## Commands

```bash
# Check your current usage and limits
npx @howincodes/claude-code-limiter status

# Force sync with server (requires sudo)
sudo npx @howincodes/claude-code-limiter sync

# Remove the limiter (requires sudo)
sudo npx @howincodes/claude-code-limiter uninstall
```

## What happens when you hit a limit?

```
Daily opus limit reached.
Used 5/5 prompts today.

All usage today:
  opus:    5/5   (0 left)
  sonnet: 12/20  (8 left)
  haiku:  3/40   (37 left)

Credit balance: 15/100

Options:
  Switch to another model (if quota remains)
  Try again later
```

## How it works

The installer places a hook in Claude Code's `managed-settings.json` — the highest-priority config that can't be overridden. The hook checks limits on every prompt and counts usage on every completed turn.

- **Zero npm dependencies** — uses only Node.js built-ins
- **Works offline** — falls back to local cache if server is unreachable
- **Fail-closed** — missing config = blocked, not unlimited
- **6 security layers** — managed-settings, file permissions, watchdog daemon, server-side tracking, kill switch, fail-closed default

## For admins

See the [main repo](https://github.com/howincodes/claude-code-limiter) for full setup: server deployment, dashboard, Docker, and configuration.

## License

MIT