# window-popup

> Open window popup centered in the current browser window

Latest version **1.1.0** (published 2017-10-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install window-popup
pnpm add window-popup
yarn add window-popup
bun add window-popup
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-10-27 |
| First published | 2015-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Daniel Husar |
| Maintainers | efrafa |

## Links

- npm: https://www.npmjs.com/package/window-popup
- Repository: https://github.com/danielhusar/window-popup
- Issues: https://github.com/danielhusar/window-popup/issues
- npm.io page: https://npm.io/package/window-popup

## Recent versions

- 1.1.0 (latest) — 2017-10-27
- 1.0.1 — 2015-03-05
- 1.0.0 — 2015-03-02

## README

# window-popup [![Build Status](http://img.shields.io/travis/danielhusar/window-popup.svg?style=flat-square)](https://travis-ci.org/danielhusar/window-popup)
> Open window popup centered in the current browser window

## Install

```sh
$ npm install --save window-popup
```


## Usage

### node.js

```js
var popup = require('window-popup').windowPopup;
popup(500, 500, 'http://www.google.sk');
popup(500, 500, 'http://www.google.com', 'Google');
popup(500, 500, 'http://www.google.com', 'Google', gui.Window.get()); //node webkit custom window object
```

### Browser with jQuery

```js
$.windowPopup(500, 500, 'http://www.google.sk');

```

### Browser

```js
window.windowPopup(500, 500, 'http://www.google.sk');

```

## API

#### width (required)

Type: `Number`  
Default: `undefined`

Width of the popup.

#### height (required)

Type: `Number`  
Default: `undefined`

Height of the popup.

#### url (required)

Type: `String`  
Default: `undefined`

Url to open in popup.

#### title

Type: `String`  
Default: ``

Title of the popup.

#### window

Type: `object`  
Default: `window`

Custom window object. Usefull in environments like node webkit.


## License

MIT © [Daniel Husar](https://github.com/danielhusar)

---
_Source: https://npm.io/package/window-popup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
