{"_id":"@acta/path-matcher","_rev":"5-1e2d10ba553983ff822c272f1f32e688","name":"@acta/path-matcher","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.1":{"name":"@acta/path-matcher","version":"1.0.1","description":"Compile a regex matcher from a path template and test real paths against it.","main":"dist/index.umd.js","module":"dist/index.es5.js","types":"dist/types/index.d.ts","keywords":["acta","path","matcher","path matcher"],"engines":{"node":">=8.0.0"},"scripts":{"build:dev-watch":"rollup -w --config rollup.config.dev.js","build":"rimraf dist && tsc --module commonjs && rollup --config rollup.config.build.js","dev":"rimraf dist && concurrently \"npm run build:dev-watch\" \"npm run test:dev\" --kill-others --restartTries 2 --restartDelay 200","release":"npm run build && release-it","test:dev":"jest --watchAll"},"repository":{"type":"git","url":"git+https://github.com/fabien-h/path-macther.git"},"author":{"name":"Fabien Huet","email":"fabien.huet@gmail.com","url":"https://wax-o.com"},"license":"MIT","devDependencies":{"@types/jest":"^23.3.10","concurrently":"^4.1.0","jest":"^23.6.0","release-it":"^9.3.0","rimraf":"^2.6.2","rollup":"^0.68.2","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.18.1","ts-jest":"^23.10.5","typescript":"^3.2.2"},"bugs":{"url":"https://github.com/fabien-h/path-matcher/issues"},"homepage":"https://github.com/fabien-h/path-matcher#readme","directories":{"test":"tests"},"gitHead":"5ddd5b710827240cdc1c09f86606c0a658b3c9c4","_id":"@acta/path-matcher@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"fabien-h","email":"fabien.huet@gmail.com"},"dist":{"integrity":"sha512-SSOvqWWMNV06H2I4NA+4KpVhs43HtnAZrh/FBN9RIN6YpsalbBHqUD8DXVhbB1nfEJMHl4oNmLQhoAwj920/wQ==","shasum":"1e71a39b59810863ee2132bca0dc2cc42cdc802a","tarball":"https://registry.npmjs.org/@acta/path-matcher/-/path-matcher-1.0.1.tgz","fileCount":22,"unpackedSize":52560,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcJlnICRA9TVsSAnZWagAAiLcQAJEkCkshaUizv/oO/VW1\n1ALQ1hDWQJuuf4CDonAA4o3V/Vz4cS/2b7zQZJRGBq6pmU9vv/p08o2duPG3\naFbxblLwhaELiIFWL1KHOgEbneQP/hX1YHFcqCxMDztY1iMPoTvUEEsVqp/m\niBQWG4yzz3x6JxuvhbkKB4aDmKfFyYk0RZ8iP6WI23hPGqeM1hLl9QvAC2UC\nNi/8/Od0HAUH/Jr1/V81ABP//WBRMlwi4KElc3+VatDhxgz0IsUmVA6SXCMK\ngaNIp+4OKR3pHqQ5OBQikrBDXt8xhg8NsnExb29pFDlcDWcO5WBVIlgNlKaL\nS3FveJ5u/lqc3FW15rDBmulyA8zebWdsPgWf3JNDBNhNy/DdumTrV/FH6kbE\nKvEnR46AzjCpgdx8aPeOq5Bs2QGK8sRQpYP6fRM4dr8+sPPaVXg3AqEtak5a\n6K3ZvvrcrKCKbYbPT2OsMoecCvox7+KTykSnb+8mC9kR+Aj7h41PHyvqAmOe\nH+/REQIrHWZ/VyTa1hLmJ6Wj73lpdkNoji1siW7B42eu/RHCtlmNb5K5+qSl\n0kPalvMAye6YQFGnrrgR3zUb8aDyjJtG4gTNAVr0CPuk9ExUGC+8O+RhAR2o\nHqOPtgLTZ2IJtY7TrCgvw/eDhbMZnKUkZLqn62wQopSlnl8+Fu295gQ8gVx9\nKKH2\r\n=WD2L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBCr2b9q8yaKMc8A4s/33DUzOIiCJnXIY1vgqFMzgjxfAiAyx24Tfo6gyOj4y39XxOYySJ9w6w1Omk2CHCVCKdEPsQ=="}]},"maintainers":[{"name":"fabien-h","email":"fabien.huet@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-matcher_1.0.1_1546017223664_0.23114548331561413"},"_hasShrinkwrap":false},"1.0.2":{"name":"@acta/path-matcher","version":"1.0.2","description":"Compile a regex matcher from a path template and test real paths against it.","main":"dist/index.umd.js","module":"dist/index.es5.js","types":"dist/types/index.d.ts","keywords":["acta","path","matcher","path matcher"],"engines":{"node":">=8.0.0"},"scripts":{"build:dev-watch":"rollup -w --config rollup.config.dev.js","build":"rimraf dist && tsc --module commonjs && rollup --config rollup.config.build.js","dev":"rimraf dist && concurrently \"npm run build:dev-watch\" \"npm run test:dev\" --kill-others --restartTries 2 --restartDelay 200","release":"npm run build && release-it","test:dev":"jest --watchAll"},"repository":{"type":"git","url":"git+https://github.com/fabien-h/path-macther.git"},"author":{"name":"Fabien Huet","email":"fabien.huet@gmail.com","url":"https://wax-o.com"},"license":"MIT","devDependencies":{"@types/jest":"^23.3.10","concurrently":"^4.1.0","jest":"^23.6.0","release-it":"^9.4.0","rimraf":"^2.6.2","rollup":"^1.0.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.18.1","ts-jest":"^23.10.5","typescript":"^3.2.2"},"bugs":{"url":"https://github.com/fabien-h/path-matcher/issues"},"homepage":"https://github.com/fabien-h/path-matcher#readme","directories":{"test":"tests"},"gitHead":"c261ba30b14fc1bc1bf1dd8d46f46e2dc9b8ff33","_id":"@acta/path-matcher@1.0.2","_npmVersion":"6.5.0","_nodeVersion":"11.4.0","_npmUser":{"name":"fabien-h","email":"fabien.huet@gmail.com"},"dist":{"integrity":"sha512-jdK9ZPgrOggzY9KWtt2or0ycozXqRe/eBs8dSQtVooiS26nCYhP9WiGR8lG2uU23DPbPnwCxTfR496hQh2b0CQ==","shasum":"ad74d5d4915f9e0e00f41bf7a0ab0a8f22bf3109","tarball":"https://registry.npmjs.org/@acta/path-matcher/-/path-matcher-1.0.2.tgz","fileCount":22,"unpackedSize":53043,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcJ2ezCRA9TVsSAnZWagAASXwP/RcDVw8DmH6BCwqfv+vQ\nWm+PchXBoYxUTmM+kJTTj6saYemwH2l9AKqiTjxamVy7d8YtBQeso1A1PDON\nrAqyTbLh6OKVgu4tNV28n4/ZrjqdmzToJbyhQJ+rNhSKLjLIDZQqieaH2pVu\n44LOeXDF5peRLOr7PU+1B7si1YsxzW5TuOSAFh0XkdNYud4VpOwnZh8IaGqy\n6aso/N0R1ZABwM3vvUIq81mmfA8zNbRHesLjknR7KPZGKw+lzExS5iLQwSUM\n7W8Dze58ycvMijZy3sPCG1Rtkvxz5Ctf1/mCXYdbRbuZhyyQOTQpbHT3kxnm\noy6Z2UgPWCodf+QFT6TUyoTpWYJQW1DP3vUobJlSKkd8X/yZ37fcrZJClMt+\nLzkt8bCBZcjPAK/JOR5fMlPc3qteYb+JZuSlwcYwiCtJI8pQlm+o4lmgFVwL\natFKyx4XUEmlt/qmozHR5H9YV3czUOmP0BD+pPUM4vsDacdT+jtOr0lSbusk\nJUd3oFhB2gMoF5CIYsggisoqUHWokWgF24GDez+vkQD2l+x34J4lU1owEVg7\nwXUYPHPMWg2WjaDd1S5KrSUWseKdDpHVj/drBAhFlG91meBk1/Lb4E+/+mEr\nToJSV9gdu882twgEo8AeLxq8IJJy+Atw9yNsHOe93UpLbArWQXqKIM4Of7EW\nZf3H\r\n=wn32\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKREbFx3hW3TykvioWeRSfj1bNBEprv3ynPk6YJLqa4wIgRYXtEdT3j9hKxyPy/9yQOlf5lpUZkZh1n8JfsPYF+aA="}]},"maintainers":[{"name":"fabien-h","email":"fabien.huet@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-matcher_1.0.2_1546086322880_0.7986444188968731"},"_hasShrinkwrap":false},"1.0.3":{"name":"@acta/path-matcher","version":"1.0.3","description":"Compile a regex matcher from a path template and test real paths against it.","main":"dist/index.umd.js","module":"dist/index.es5.js","types":"dist/types/index.d.ts","keywords":["acta","path","matcher","path matcher"],"engines":{"node":">=8.0.0"},"scripts":{"build:dev-watch":"rollup -w --config rollup.config.dev.js","build":"rimraf dist && tsc --module commonjs && rollup --config rollup.config.build.js","dev":"rimraf dist && concurrently \"npm run build:dev-watch\" \"npm run test:dev\" --kill-others --restartTries 2 --restartDelay 200","release":"npm run build && release-it","test:dev":"jest --watchAll"},"repository":{"type":"git","url":"git+https://github.com/fabien-h/path-macther.git"},"author":{"name":"Fabien Huet","email":"fabien.huet@gmail.com","url":"https://wax-o.com"},"license":"MIT","devDependencies":{"@types/jest":"^23.3.11","concurrently":"^4.1.0","jest":"^23.6.0","release-it":"^9.4.3","rimraf":"^2.6.2","rollup":"^1.0.0","rollup-plugin-commonjs":"^9.2.0","rollup-plugin-copy":"^0.2.3","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.18.1","ts-jest":"^23.10.5","typescript":"^3.2.2"},"bugs":{"url":"https://github.com/fabien-h/path-matcher/issues"},"homepage":"https://github.com/fabien-h/path-matcher#readme","directories":{"test":"tests"},"gitHead":"c1da9b547921f3781076c1bafb4c61d30d4f420b","_id":"@acta/path-matcher@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"fabien-h","email":"fabien.huet@gmail.com"},"dist":{"integrity":"sha512-txinlLHrqLqHUlzoaYOBqWDOZ4oSQ3H3Lms6lGcJw3/DoxOXcX6iWfokVitQGzx2HLe6KI/1/4mFuVNPDWRlcA==","shasum":"d360ee70ec21b54ecb61030ef778f413498bec29","tarball":"https://registry.npmjs.org/@acta/path-matcher/-/path-matcher-1.0.3.tgz","fileCount":22,"unpackedSize":53043,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLPLlCRA9TVsSAnZWagAAVNcP/ioR1Tnd80PAJFohozfB\nf2gbWHvrdmWMZEFOCicrek7/z0fJrbojkeZX1Rk7TIPYCSZgY33EI+1VyHkv\nohC4x+PipezpkuJa7kn3cv44iVv8VZUactvaBRp6KLYBLQ16Q10b3CL07jeI\nHUmHz4LNoAaqsvIBIVtsv1nEMGU2S8LPiKROHBQ+9OgXX4hEbFlqvGuwl8po\nB92CpVn2INYNAFT+di/PdQc7EwtXRIsHZChUOauryXo92YFStzdA/KXb2fhQ\nJF2trLcRf3FKkS1iggYdLgCqqLPaH32A8puFvXIG1G3Hwmez6rwBvhJfp5Ju\nWb+mDrSQF33tMMuZ1VlRTu6h8Qvi0bubZ2+EORUoEA33qnQ9FRObEt9f+BIZ\nIOtdlaAd/+nPXgfG9Ngp3LCbbLsdBC320n0GACToi3omRcmj0CzBSP85mfU7\nwf7bMZm97HJlw1je8dZrSgqAqW43awd1Cv+s20zr3kKb5/BLX7vQbng6yTPW\nb7bFu2i03eFWMeZXbI5PAVjdQ8uA/yFiLD/kfvnpn8Ll1OTLhNyTzAdlv62l\nmmKOFjH6RfLageCIMCIpXu3SJKJWLehlAVUyxbcz93oDsIkk6ZUoB3mDlEqI\nWpThgMvGBgTH2BRBx2MnZAhQh0akrtyaiqC/V0K8d61dDQLA5VdDsY6aBXs3\nE7ng\r\n=bc3+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0HwjQfLOP8bgHvoJoSj8GtYln1cHssNA0/FG2jg8s9wIhAPje/Ousjf4nPhW/u9BMKu+3GzRTBS6meyWv0wSDE+Cm"}]},"maintainers":[{"name":"fabien-h","email":"fabien.huet@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-matcher_1.0.3_1546449636396_0.14947246387613267"},"_hasShrinkwrap":false},"1.0.4":{"name":"@acta/path-matcher","version":"1.0.4","description":"Compile a regex matcher from a path template and test real paths against it.","main":"dist/index.umd.js","module":"dist/index.es5.js","types":"dist/types/index.d.ts","keywords":["acta","path","matcher","path matcher"],"engines":{"node":">=8.0.0"},"scripts":{"build:dev-watch":"rollup -w --config rollup.config.dev.js","build":"rimraf dist && tsc --module commonjs && rollup --config rollup.config.build.js","dev":"rimraf dist && concurrently \"npm run build:dev-watch\" \"npm run test:dev\" --kill-others --restartTries 2 --restartDelay 200","release":"npm run build && release-it","test:dev":"jest --watchAll"},"repository":{"type":"git","url":"git+https://github.com/fabien-h/path-macther.git"},"author":{"name":"Fabien Huet","email":"fabien.huet@gmail.com","url":"https://wax-o.com"},"license":"MIT","devDependencies":{"@types/jest":"^25.1.0","concurrently":"^5.1.0","jest":"^25.1.0","release-it":"^12.4.3","rimraf":"^3.0.1","rollup":"^1.30.1","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-sourcemaps":"^0.5.0","rollup-plugin-typescript2":"^0.25.3","ts-jest":"^25.0.0","typescript":"^3.7.5"},"bugs":{"url":"https://github.com/fabien-h/path-matcher/issues"},"homepage":"https://github.com/fabien-h/path-matcher#readme","directories":{"test":"tests"},"publishConfig":{"access":"public"},"gitHead":"8d69af6147de3c5aa71a7f560d359eeab0f7fd05","_id":"@acta/path-matcher@1.0.4","_nodeVersion":"13.5.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-kMNiM7YGOdo+rAOHUHvtCz0oXcIbDNdt52mYXvo6VyngXuer1Z1rV5ek+zv/nB93wtmGs059WC3d+nFzS4Nx+w==","shasum":"bc363a6ec390a84ef22980fbc3599352e6088f08","tarball":"https://registry.npmjs.org/@acta/path-matcher/-/path-matcher-1.0.4.tgz","fileCount":22,"unpackedSize":53115,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMVmdCRA9TVsSAnZWagAAm5oP/jZuyOTGdZ9fg1yNJMjq\nM1xom9HsWp3mCUvScEHnsxeHYGgbnkn3fmhaMZl+PALk1ZbJbX4rFoXItfwg\nyYNz7d3hlvwRSsJ13DTlglyeSd3RKb1tU9NzzmxxADLBAKn9nJuAbUx0hC+8\nz3vfM5wO50pk3LWFoVJtZuVu0+JAans+ZHoCOLz4T3wD75WwszJqajxDobsA\nlEHy+nEsJkEoB23DDVEjt7fVsO45p6bCou7H4I9C+TRguN1ZMRUU7fMPIL0B\nK+luZkZnEf4qvu4L3L+TimMjkULcPS1rk1YDXPALeI9xdTo+wVxObEAuD6H6\nuhOvmO/1zOyijTWhFLYxACUe3py7QYgKe9hMsuG/biNa5+R9xZFWofT97/E4\nzEls4CSi+UOdj4dfkTlJHKyx0zgYaUmQQUF3gRPogFFbQQ4w3Tgek0JeWC9c\nXZzRtjavFUqH4fH+XVxr/0pJnuUjPlN3ZhdHviKIW+jhkiazyAKHxiYaVPwd\n7/z7rynFICgUrcjGZ7O+iW4CPhPrqnrP7dasoGtOhRTMP2oNItUlqbTW30Zd\nBu7lFFnlOJjzgQ8Z0YCYa1hN4hbDjD0zfagnLH4nmCX0TNiG6vmwuqiZd3uf\nQff4Q2UNS6qGq1qK1B5mDUZ0qfA17Q6sizmifvKH3t/5KLT9csWJiSxjh0hy\nGO8D\r\n=6SDK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoZk+312upMNdQdFMMW/6NP6/4OlSkz9BycHLltPVudwIhAIRRkWHcqus4Vn+y2HOLsrtGnIFfiUwqoKtUkHkvf5F5"}]},"maintainers":[{"email":"fabien@faber.place","name":"faber_fab"},{"email":"fabien.huet@gmail.com","name":"fabien-h"}],"_npmUser":{"name":"fabien-h","email":"fabien.huet@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-matcher_1.0.4_1580292508585_0.3529524576865706"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-28T17:13:43.394Z","1.0.1":"2018-12-28T17:13:43.800Z","modified":"2022-04-04T11:16:44.452Z","1.0.2":"2018-12-29T12:25:23.006Z","1.0.3":"2019-01-02T17:20:36.549Z","1.0.4":"2020-01-29T10:08:28.740Z"},"maintainers":[{"email":"fabien@faber.place","name":"faber_fab"},{"email":"fabien.huet@gmail.com","name":"fabien-h"}],"description":"Compile a regex matcher from a path template and test real paths against it.","homepage":"https://github.com/fabien-h/path-matcher#readme","keywords":["acta","path","matcher","path matcher"],"repository":{"type":"git","url":"git+https://github.com/fabien-h/path-macther.git"},"author":{"name":"Fabien Huet","email":"fabien.huet@gmail.com","url":"https://wax-o.com"},"bugs":{"url":"https://github.com/fabien-h/path-matcher/issues"},"license":"MIT","readme":"<img width=\"100\" height=\"28\" src=\"https://raw.githubusercontent.com/fabien-h/path-matcher/master/img/acta.png\"/>\n<img width=\"232\" height=\"28\" src=\"https://raw.githubusercontent.com/fabien-h/path-matcher/master/img/path-matcher.png\"/>\n\n# Path-Matcher @acta/path-matcher\n\nTo compile a regex matcher from a path template and test paths against a regex matcher. This is meant to be used as an utilit for a router.\n\n## Table of Contents\n\n- [Basic use case](#basic-use-case)\n- [Store compiled templates](#store-compiled-templates)\n- [Test against a compiled template](#test-against-a-compiled-template)\n- [Check if a path matches a stored template](#check-if-a-path-matches-a-stored-template)\n- [Dev scripts](#dev-scripts)\n\n## Basic use case\n\nTest a path against a template with `testPath( path, template )`. If the path matches with the template, an object with the name, the pathname and the segment values is returned. Otherwise, the test returns false.\n\n```JavaScript\nimport pathMatcher from '@acta/path-matcher';\n\n// Strict template\npathMatcher.testPath('/foo/bar', '/foo/bar');\n/**\n  {\n    name: '/foo/bar', <= the template is unnamed\n    pathname: '/foo/bar',\n    segments: {},\n    template: '/foo/bar',\n  }\n */\n\n// Template with variable segment\npathMatcher.testPath('/foo/bar', '/foo/{baz}')\n/**\n  {\n    name: '/foo/{baz}',\n    pathname: '/foo/bar',\n    segments: { baz: 'bar' }, <= the value for the segment 'baz'\n    template: '/foo/{baz}',\n  }\n */\n\n// Template with optional segment\npathMatcher.testPath('/foo', '/foo/{bar?}')\n/**\n  {\n    name: '/foo/{bar?}',\n    pathname: '/foo',\n    segments: { bar: null }, <= note the optional segment at null\n    template: '/foo/{bar?}',\n  }\n */\n\n// No match\npathMatcher.testPath('/foo/bar', '/bar/foo'); // false\n```\n\n## Store compiled templates\n\nYou can store templates in the `pathMatcher` object. They will be compiled for later use.\n\n```JavaScript\nimport pathMatcher from '@acta/path-matcher';\n\n// As a simple string\npathMatcher.addTemplate('/foo/{bar?}');\n\n// As a template with meta data\npathMatcher.addTemplate({\n  name: 'foobar',\n  paramsChecks: {\n    bar: /[0-9]?/\n  },\n  template: '/foo/{bar?}'\n});\n```\n\n> The compiled template will be accessible in `pathMatcher.compiledTemplates`.\n\n## Test against a compiled template\n\nWhen a template has been stored, you can test a path against it.\n\n```JavaScript\nimport pathMatcher from '@acta/path-matcher';\n\npathMatcher.testPathAgainstCompiledTemplate('foobar', 'foo/123');\n/**\n  {\n    name: 'foobar', <= now the template is named\n    pathname: 'foo/baz',\n    segments: {\n      bar: '123'\n    },\n    template: '/foo/{bar?}',\n  }\n */\n```\n\n> This is more of an internal method used to find a template, but you can use it to build a router.\n\n## Check if a path matches a stored template\n\n```JavaScript\nimport pathMatcher from '@acta/path-matcher';\n\n// Add a simple template\npathMatcher.addTemplate('/foo/bar/{baz?}');\n\n// Add the template with meta data\npathMatcher.addTemplate({\n  name: 'foobar',\n  paramsChecks: {\n    bar: /[0-9]?/\n  },\n  template: '/foo/{bar?}'\n});\n\n// Find the path\npathMatcher.findPath('foo/123');\n/**\n  {\n    name: 'foobar',\n    pathname: 'foo/baz',\n    segments: {\n      bar: '123'\n    },\n    template: '/foo/{bar?}',\n  }\n */\n\n// Find an unknown path\npathMatcher.findPath('bar/123');\n/**\n  false\n */\n```\n\n## Dev scripts\n\nScripts :\n\n- `npm run dev` to dev (build, test and watch)\n- `npm run build` to build the production version\n- `npm run release` to release a new version. Relies on [release-it](https://github.com/webpro/release-it) for deployments.\n\nTo develop in local using the package from another application or package, go for a symlink: `npm link /the/absolute/path/url`.\n\nTo publish: `npm publish --access=public`.\n","readmeFilename":"readme.md"}