external-link-new-tab

1.1.2 • Public • Published

external-link-new-tab

Useful when you need to open external url in new tab.

window.open will normally open external links as Popups.

Install

$ npm install external-link-new-tab --save

Usage

import { openInNewTab } from 'external-link-new-tab';
 
openInNewTab("https://solankiamit.com")

API

options

Type: Object

timeout

Type: number
Default: 20

Number of milliseconds after which the new tab will open the link. (normally you won't have to change this. You have option to change it, because why not 😉)

License

MIT © Amit Solanki

Package Sidebar

Install

npm i external-link-new-tab

Weekly Downloads

1

Version

1.1.2

License

MIT

Unpacked Size

2.65 kB

Total Files

4

Last publish

Collaborators

  • iamsolankiamit