Socket
Socket
Sign inDemoInstall

file-url

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-url - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

index.js

@@ -6,3 +6,3 @@ 'use strict';

if (typeof str !== 'string') {
throw new Error('Expected a string');
throw new TypeError(`Expected a string, got ${typeof str}`);
}

@@ -9,0 +9,0 @@

{
"name": "file-url",
"version": "2.0.0",
"version": "2.0.1",
"description": "Convert a path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`",

@@ -5,0 +5,0 @@ "license": "MIT",

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