Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.145.175.71
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
path-to-regexp /
Delete
Unzip
Name
Size
Permission
Date
Action
History.md
694
B
-rw-r--r--
2015-07-28 03:06
LICENSE
1.08
KB
-rw-r--r--
2015-07-28 02:25
Readme.md
1.08
KB
-rw-r--r--
2015-07-28 02:27
index.js
3.25
KB
-rw-r--r--
2015-07-28 03:03
package.json
1.4
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
# Path-to-RegExp Turn an Express-style path string such as `/user/:name` into a regular expression. **Note:** This is a legacy branch. You should upgrade to `1.x`. ## Usage ```javascript var pathToRegexp = require('path-to-regexp'); ``` ### pathToRegexp(path, keys, options) - **path** A string in the express format, an array of such strings, or a regular expression - **keys** An array to be populated with the keys present in the url. Once the function completes, this will be an array of strings. - **options** - **options.sensitive** Defaults to false, set this to true to make routes case sensitive - **options.strict** Defaults to false, set this to true to make the trailing slash matter. - **options.end** Defaults to true, set this to false to only match the prefix of the URL. ```javascript var keys = []; var exp = pathToRegexp('/foo/:bar', keys); //keys = ['bar'] //exp = /^\/foo\/(?:([^\/]+?))\/?$/i ``` ## Live Demo You can see a live demo of this library in use at [express-route-tester](http://forbeslindesay.github.com/express-route-tester/). ## License MIT