Jasop

A window.open JavaScript wrapper.

Travis CI Build Status CodeFactor Score

NPM

Importing

From your NodeJS application:

const Jasop = require("jasop")

From your web application:

<script src="https://unpkg.com/jasop/jasop.min.js"></script>

Usage

// Will parse as: window.open("https://example.com", "MyWindow", "height=100,scrollbars=yes,width=200", true)
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
        title: "MyWindow", // Custom window title
        replace: true // History behaviour
    }
)