{"_id":"url-match-patterns","_rev":"2-bbf3bc1899424704952358d9ce4bc991","name":"url-match-patterns","description":"A module for testing URLs against Chrome and Firefox match patterns.","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"url-match-patterns","version":"0.2.0","description":"A module for testing URLs against Chrome and Firefox match patterns.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","lint":"eslint src","pretest":"npm run lint","test":"mocha test","prepublish":"in-publish && npm run test && npm run build || not-in-publish","publish:major":"npm version major && npm publish","publish:minor":"npm version minor && npm publish","publish:patch":"npm version patch && npm publish","postpublish":"git push origin master --tags"},"repository":{"type":"git","url":"git+https://github.com/nickclaw/url-match-patterns.git"},"bugs":{"url":"http://github.com/nickclaw/url-match-patterns/issues"},"keywords":["match","patterns","chrome","firefox","extension","WebExtensions","url"],"author":{"name":"Nicholas Clawson","email":"nickclaw@gmail.com","url":"nickclaw.com"},"license":"MIT","dependencies":{"lodash":"^4.3.0"},"devDependencies":{"babel-cli":"^6.4.5","babel-eslint":"^7.1.1","babel-preset-es2015":"^6.3.13","babel-preset-stage-1":"^6.3.13","babel-register":"^6.4.3","chai":"^3.4.1","eslint":"^3.16.1","eslint-config-airbnb":"^14.1.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^4.0.0","eslint-plugin-react":"^6.10.0","in-publish":"^2.0.0","mocha":"^3.2.0","sinon":"^1.17.2","sinon-chai":"^2.8.0"},"gitHead":"76758be7d2e21d3acb214449182aabf541778e84","homepage":"https://github.com/nickclaw/url-match-patterns#readme","_id":"url-match-patterns@0.2.0","_shasum":"a688f68b0aff990c6df3c99ec208a8d410f1cb8c","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"nickclaw","email":"nickclaw@gmail.com"},"dist":{"shasum":"a688f68b0aff990c6df3c99ec208a8d410f1cb8c","tarball":"https://registry.npmjs.org/url-match-patterns/-/url-match-patterns-0.2.0.tgz","integrity":"sha512-vtaWyxq+CyrQP4/dapGddkSGwGypQOD2qjHcsqp9ahsjRWzGtjqm+ANxApH46OfWQfpkL6cuyPwsm80386jdjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqEKYVRkjsep0VRcG9nJTLWqL5f0VmVJ6xVdmATTUXFgIhAJCR2xmfJwvGenKCfrRI+gJRUvEEGYM4WlsLyLkW5Llc"}]},"maintainers":[{"name":"nickclaw","email":"nickclaw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-match-patterns-0.2.0.tgz_1495605847012_0.698492705123499"}}},"readme":"# url-match-patterns\n\nA node module for testing URLs against match patterns, as defined by\n[Google](https://developer.chrome.com/extensions/match_patterns) and\n[Mozilla](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Match_patterns).\n\n### Example\n\n```js\nimport match from 'url-match-patterns';\n\n// check that a url matches\nmatch('*://*/', 'https://www.example.com'); // true\n\n// or build a reusable function\nconst matches = match('*://*/');\nmatches('https://www.example.com'); // true\n\n```\n\n### API\n\n##### `match(pattern, url) -> Boolean`\nCompares a pattern against a URL. Returns `true` if the pattern matches\nor `false` if it doesn't. Will throw an `AssertionError` if your pattern\nis invalid.\n\n##### `match(pattern) -> Function`\nCreate a reusable match function for a pattern. This will be faster since\nit only has to initialize once. Will throw an `AssertionError` if your pattern\nis invalid.\n","maintainers":[{"name":"nickclaw","email":"nickclaw@gmail.com"}],"time":{"modified":"2022-06-28T06:15:58.248Z","created":"2017-05-24T06:04:07.108Z","0.2.0":"2017-05-24T06:04:07.108Z"},"homepage":"https://github.com/nickclaw/url-match-patterns#readme","keywords":["match","patterns","chrome","firefox","extension","WebExtensions","url"],"repository":{"type":"git","url":"git+https://github.com/nickclaw/url-match-patterns.git"},"author":{"name":"Nicholas Clawson","email":"nickclaw@gmail.com","url":"nickclaw.com"},"bugs":{"url":"http://github.com/nickclaw/url-match-patterns/issues"},"license":"MIT","readmeFilename":"README.md"}