
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
cspell-glob
Advanced tools
cspell-globA simple library for checking filenames against a set of glob rules. It attempts to emulate the .gitignore rules.
The purpose behind this library is a bit different than the other glob matchers. The goal here is to see if a file name matches a glob, not to find files that match globs. This library doesn't do any file i/o. It uses micromatch under the hood for the actual matching.
import { GlobMatcher } from 'cspell-glob';
// Patterns behave like the contents of a `.gitignore` file.
const patterns = ['*.test.js', '!important.test.js'];
const matcher = new GlobMatcher(patterns, process.cwd());
matcher.match('src/app.test.js'); // true -- matches `*.test.js`
matcher.match('src/important.test.js'); // false -- excluded by the negated pattern
matcher.match('src/app.js'); // false -- does not match any pattern
By default, GlobMatcher runs in exclude mode (like .gitignore). Use include mode when searching for
files to check, where patterns must be more explicit to match:
const matcher = new GlobMatcher(['src/**/*.ts'], { root: process.cwd(), mode: 'include' });
matcher.match('src/app.ts'); // true
matcher.match('node_modules/lib/index.ts'); // false
Available as part of the Tidelift Subscription.
The maintainers of cspell and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. Learn more.
Brought to you by
Street Side Software
FAQs
Glob matcher for cspell
The npm package cspell-glob receives a total of 918,367 weekly downloads. As such, cspell-glob popularity was classified as popular.
We found that cspell-glob demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.