match-chrome
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

match-chrome

A module for testing URLs against match chrome patterns

options

defaultOptions = {
    skipHash: true,
    skipQuery: false,
 
    scheme: [
        'http',
        'https',
        'file',
        'ftp',
    ],
 
    returnValue: false,
}

use

import matchChrome from 'match-chrome';

matchChrome('http://127.0.0.1', 'http://127.0.0.1/*') // ok

demo

see test

Readme

Keywords

none

Package Sidebar

Install

npm i match-chrome

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • bluelovers