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

url-or-path

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-or-path - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

10

index.js

@@ -29,2 +29,10 @@ import {fileURLToPath, pathToFileURL} from 'node:url'

export {toDirectory, toUrl, toUrl as toURL, toPath}
export {
isUrl,
isUrlInstance,
isUrlString,
toDirectory,
toUrl,
toUrl as toURL,
toPath,
}

2

package.json
{
"name": "url-or-path",
"version": "2.0.0",
"version": "2.1.0",
"description": "Convert between file URL and path.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/fisker/url-or-path#readme",

@@ -56,1 +56,13 @@ # url-or-path

Same as `toUrl`, but the result URL always ends with `/`.
### `isUrl(object)`
Check if `object` is a `URL` instance of `file://` string.
### `isUrlInstance(object)`
Check if `object` is a `URL` instance.
### `isUrlString(object)`
Check if `object` is a `file://` string
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