Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-to-from-params

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-to-from-params - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

package.json
{
"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'}`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc