Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 24, 2024 via pnpm

opener 1.4.0

Opens stuff, like webpages and files and executables, cross-platform
Package summary
Share
1
issue
1
low severity
license
1
1
license
1
WTFPL
Package created
6 Aug 2012
Version published
21 Aug 2014
Maintainers
1
Total deps
1
Direct deps
0
License
WTFPL

Issues

1

1 low severity issue

low
Recommendation: Read and validate the license terms
via: opener@1.4.0
Collapse
Expand

Licenses

Do What The F*ck You Want To Public License

Permissive
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
sublicense
distribute
modify
Cannot
Must
rename
1 Packages, Including:
opener@1.4.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of opener 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does opener do?

Opener is a versatile, cross-platform utility that enables the opening of various types of content within your desktop environment. It can open web pages, local files, and executables, making it possible to create actual windows that pop up with the selected content. Whether you need to launch a website, view a text file, open an application like Firefox, or run a specific command like 'npm run lint', opener accomplishes this effectively.

How do you use opener?

Here's how to use Opener for different purposes:

First you need to install it globally using npm:

npm install opener -g

Then you can run the opener command followed by the content you wish to open:

opener http://google.com
opener ./my-file.txt
opener firefox
opener npm run lint

If you want to use Opener programmatically, you can integrate it into your JavaScript files:

var opener = require("opener");

opener("http://google.com");
opener("./my-file.txt");
opener("firefox");
opener("npm run lint");

Opener also returns the child process created, allowing your script to exit while the window remains open:

var editor = opener("documentation.odt");
editor.unref();
editor.stdin.unref();
editor.stdout.unref();
editor.stderr.unref();

You can also use Opener in your package's test script to automatically open a test harness in the user's browser:

{
    "scripts": {
        "test": "opener ./test/runner.html"
    },
    "devDependencies": {
        "opener": "*"
    }
}

Where are the opener docs?

You can refer to the Opener documentation and example usage within the readme file provided in its GitHub repository, accessible via this URL: https://github.com/domenic/opener. This readme file presents a comprehensive overview of the functionalities Opener offers and how to integrate them into your projects.