zeptomatch-is-static

A little utility for checking if a glob is fully static.

MIT 2 个版本
安装
npm install zeptomatch-is-static
yarn add zeptomatch-is-static
pnpm add zeptomatch-is-static
bun add zeptomatch-is-static
README

Zeptomatch Is Static

A little utility for checking if a glob is fully static.

Escapes are considered to be static, so you should probably use this package in combination with zeptomatch-unescape to remove them.

Install

npm install zeptomatch-is-static

Usage

import isStatic from 'zeptomatch-is-static';

// Checking if a glob is fully static

isStatic ( 'foo' ); // true
isStatic ( 'foo/bar' ); // true
isStatic ( 'foo\\*bar' ); // true

isStatic ( '*' ); // false
isStatic ( '**' ); // false
isStatic ( 'foo*' ); // false
isStatic ( 'foo/**/*' ); // false
isStatic ( 'foo*bar' ); // false

License

MIT © Fabio Spampinato

版本列表
1.0.1 2025-03-05
1.0.0 2024-03-29