Skip to content
/ jasop Public

Human-friendly `window.open`.

License

Notifications You must be signed in to change notification settings

Richienb/jasop

jasop

Human-friendly window.open.

Install

npm install jasop

Usage

import jasop from 'jasop';

jasop(
    'https://example.com', // URL
    {
        height: 100, // You can use any window.open option
        scrollbars: true, // Booleans will the parsed
        width: 200, // Everything else will be converted to a string
    }
);
// window.open('https://example.com', 'MyWindow', 'height=100,scrollbars=yes,width=200,top=100', true);

API

jasop(url, options?)

url

Type: string | URL

The URL to open.

options

Type: object

The options to use. Refer to MDN

About

Human-friendly `window.open`.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •