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

external-link-new-tab

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

external-link-new-tab - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

2

index.js
module.exports.default = (url, options) => {
let timeout = 20;
if (options && options.timeout) timeout = options.timeout;
const win = window.open(window.location.host, "_blank");
const win = window.open(window.location.href, "_blank");
setTimeout(() => (win.location.href = url), timeout);
};
{
"name": "external-link-new-tab",
"version": "1.0.0",
"version": "1.1.0",
"description": "Opens link in new tab, via function call.",

@@ -5,0 +5,0 @@ "main": "index.js",

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