├── path-to-regexp@0.1.7 ├── content-type@1.0.1 ├── etag@1.7.0 ├── serve-static@1.10.0 ├── content-disposition@0.5.0 ├── depd@1.0.1 ├── qs@4.0.0 ├── finalhandler@0.4.0 (unpipe@1.0.0) ├── on-finished@2.3.0 (ee-first@1.1.1) ├── proxy-addr@...
npm install path-to-regexp --save Usage const{match,pathToRegexp,compile,parse,stringify,}=require("path-to-regexp"); Parameters Parameters match arbitrary strings in a path by matching up to the end of the segment, or up to any proceeding tokens. They are defined by prefixing a colon...
"parseurl": "~1.3.0", "path-to-regexp": "0.1.7", "proxy-addr": "~1.0.8", "qs": "4.0.0", "range-parser": "~1.0.2", "send": "0.13.0", "serve-static": "~1.10.0", "type-is": "~1.6.6", "utils-merge": "1.0.0", "vary": "~1.0.1" }, "devDependencies": { ...
"parseurl": "~1.3.0", "path-to-regexp": "0.1.7", "proxy-addr": "~1.0.8", "qs": "4.0.0", "range-parser": "~1.0.2", "send": "0.13.0", "serve-static": "~1.10.0", "type-is": "~1.6.6", "utils-merge": "1.0.0", "vary": "~1.0.1" }, "devDependencies": { ...
path-to-regexp node_modules/@nestjs/platform-fastify @nestjs/core <=2.0.2 || 5.2.0-next - 5.7.4 || >=6.11.0-next.1 Depends on vulnerable versions of @nestjs/microservices Depends on vulnerable versions of @nestjs/platform-express Depends on vulnerable versions of @nestjs/websockets ...
options (optional) (Extends pathToRegexp options) decode Function for decoding strings to params, or false to disable all processing. (default: decodeURIComponent) const fn = match("/foo/:bar"); Please note: path-to-regexp is intended for ordered data (e.g. paths, hosts). It can no...
path-to-regexp@0.1.7├── content-type@1.0.1├── etag@1.7.0├── serve-static@1.10.0├── content-disposition@0.5.0├── depd@1.0.1├── qs@4.0.0├── finalhandler@0.4.0(unpipe@1.0.0)├── on-finished@2.3.0(ee-first@1.1.1)├── proxy-addr@1.0.8(forwarded@0.1.0,...
(regexUserById));constregexTasksByUser=pathToRegexp('/users/:user_id/tasks');console.log(regexTasksByUser);console.log('/users/1/tasks'.match(regexTasksByUser));constregexTasksByIdAndUser=pathToRegexp('/users/:user_id/tasks/:task_id');console.log(regexTasksByIdAndUser);console.log('/...
├── path-to-regexp@0.1.7 ├── content-type@1.0.1 ├── etag@1.7.0 ├── serve-static@1.10.0 ├── content-disposition@0.5.0 ├── depd@1.0.1 ├── qs@4.0.0 ├── finalhandler@0.4.0 (unpipe@1.0.0) ├── on-finished@2.3.0 (ee-first@1.1.1) ...
signature@1.0.6├──methods@1.1.1├──fresh@0.3.0├──vary@1.0.1├──path-to-regexp@0.1.7├──content-type@1.0.1├──etag@1.7.0├──serve-static@1.10.0├──content-disposition@0.5.0├──depd@1.0.1├──qs@4.0.0├──finalhandler@0.4.0(unpipe@1.0.0)├──on-finished@...