path-to-from-params
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "path-to-from-params", | ||
"description": "Friendlier wrapper for path-to-regexp that converts paths to/from plain objects.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "0BSD", | ||
@@ -43,2 +43,2 @@ "author": "Dave Houlbrooke <dave@shax.com>", | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ # Path to/from params | ||
Convert a path with Express-style placeholders, e.g. `places/france/paris/` to/from an array of parameters, e.g. `{country:'france',city:'paris'}` | ||
Convert a path, e.g. `places/france/paris/`, that matches a pattern with Express-style placeholders, e.g. `'places/:country/:city'` to/from an array of parameters, e.g. `{country:'france',city:'paris'}` | ||
@@ -76,2 +76,2 @@ A a friendlier/easier wrapper for [path-to-regexp](https://www.npmjs.com/package/path-to-regexp). Built regexes are internally cached for performance and everything is fully unit tested with Jest. | ||
- `params` (object) | ||
The object containing the parameters, e.g. `{country:'china',city:'shanghai'}` | ||
The object containing the parameters, e.g. `{country:'china',city:'shanghai'}` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9931
76