1.1.0 • Published 6 years ago

native-popup v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

native-popup

Build Status Coverage Status GitHub license

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));

Options

License

MIT