Socket
Socket
Sign inDemoInstall

normalize-ssh

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-ssh - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

2

index.js
'use strict'
const parseUrl = require('parse-url')
const isSsh = require('is-ssh')
module.exports = function (ssh) {
if (!isSsh(ssh)) throw new Error(`Invalid SSH URL - ${ssh}`)
const parsedUrl = parseUrl(ssh)

@@ -6,0 +8,0 @@ const port = parsedUrl.port || '22'

3

package.json
{
"name": "normalize-ssh",
"version": "0.0.0",
"version": "1.0.0",
"description": "Normalize a SSH URL",

@@ -26,2 +26,3 @@ "main": "index.js",

"dependencies": {
"is-ssh": "^1.3.0",
"parse-url": "^1.3.5"

@@ -28,0 +29,0 @@ },

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