demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/path-to-regexp-0.1.7/Readme.md

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/path-to-regexp-0.1.7/Readme.md
Status
scanned
Type
file
Name
Readme.md
Extension
.md
Programming language

      
    
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1102 (1.1 KB)
MD5
ec68cdeaf09933d8bf7a962c261aed81
SHA1
025d50a288fe95542257c776bf43efcaa4bed4a0
SHA256
9e280681bcb5d63e7e2e8a5faa1fd1ed55573c0726268770f37ec267208fb31a
SHA512

      
    
SHA1_git
95452a6e9ee2ca18ec76107d4f7c78a5ef7991db
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Readme.md | 1.1 KB |

# 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
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
1.23
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
mit-3fce6ea2-8abd-6c6b-3ede-a37af7c6efee mit MIT
URL Start line End line
http://forbeslindesay.github.com/express-route-tester 31 31
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/path-to-regexp@0.1.7 mit JavaScript