1.1.0 • Published 6 years ago
native-popup v1.1.0
native-popup
The wrapper on the window.open()
using Promise for opening browser popup
Usage
const NativePopup = require('native-popup');
// or
import NativePopup from 'native-popup';
const options = {
width: number,
height: number,
top: number,
left: number,
menubar: boolean,
toolbar: boolean,
location: boolean,
status: boolean,
resizable: boolean,
scrollbars: boolean
};
const popup = new NativePopup('Popup Window Name', options);
popup.open('https://...').then(query => console.log(query));