zeptomatch-is-static
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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 --save 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

/zeptomatch-is-static/

    Package Sidebar

    Install

    npm i zeptomatch-is-static

    Weekly Downloads

    10,921

    Version

    1.0.0

    License

    none

    Unpacked Size

    4.78 kB

    Total Files

    9

    Last publish

    Collaborators

    • fabiospampinato