summaryrefslogtreecommitdiff
path: root/deps/node/deps/npm/node_modules/opener
diff options
context:
space:
mode:
Diffstat (limited to 'deps/node/deps/npm/node_modules/opener')
-rw-r--r--deps/node/deps/npm/node_modules/opener/LICENSE.txt47
-rw-r--r--deps/node/deps/npm/node_modules/opener/README.md55
-rwxr-xr-xdeps/node/deps/npm/node_modules/opener/bin/opener-bin.js10
-rw-r--r--deps/node/deps/npm/node_modules/opener/lib/opener.js66
-rw-r--r--deps/node/deps/npm/node_modules/opener/package.json60
5 files changed, 0 insertions, 238 deletions
diff --git a/deps/node/deps/npm/node_modules/opener/LICENSE.txt b/deps/node/deps/npm/node_modules/opener/LICENSE.txt
deleted file mode 100644
index 251b540e..00000000
--- a/deps/node/deps/npm/node_modules/opener/LICENSE.txt
+++ /dev/null
@@ -1,47 +0,0 @@
-Dual licensed under WTFPL and MIT:
-
----
-
-Copyright © 2012–2018 Domenic Denicola <d@domenic.me>
-
-This work is free. You can redistribute it and/or modify it under the
-terms of the Do What The Fuck You Want To Public License, Version 2,
-as published by Sam Hocevar. See below for more details.
-
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- Version 2, December 2004
-
- Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
-
- Everyone is permitted to copy and distribute verbatim or modified
- copies of this license document, and changing it is allowed as long
- as the name is changed.
-
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. You just DO WHAT THE FUCK YOU WANT TO.
-
----
-
-The MIT License (MIT)
-
-Copyright © 2012–2018 Domenic Denicola <d@domenic.me>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/deps/node/deps/npm/node_modules/opener/README.md b/deps/node/deps/npm/node_modules/opener/README.md
deleted file mode 100644
index 1d81513b..00000000
--- a/deps/node/deps/npm/node_modules/opener/README.md
+++ /dev/null
@@ -1,55 +0,0 @@
-# It Opens Stuff
-
-That is, in your desktop environment. This will make *actual windows pop up*, with stuff in them:
-
-```bash
-npm install opener -g
-
-opener http://google.com
-opener ./my-file.txt
-opener firefox
-opener npm run lint
-```
-
-Also if you want to use it programmatically you can do that too:
-
-```js
-var opener = require("opener");
-
-opener("http://google.com");
-opener("./my-file.txt");
-opener("firefox");
-opener("npm run lint");
-```
-
-Plus, it returns the child process created, so you can do things like let your script exit while the window stays open:
-
-```js
-var editor = opener("documentation.odt");
-editor.unref();
-// These other unrefs may be necessary if your OS's opener process
-// exits before the process it started is complete.
-editor.stdin.unref();
-editor.stdout.unref();
-editor.stderr.unref();
-```
-
-
-## Use It for Good
-
-Like opening the user's browser with a test harness in your package's test script:
-
-```json
-{
- "scripts": {
- "test": "opener ./test/runner.html"
- },
- "devDependencies": {
- "opener": "*"
- }
-}
-```
-
-## Why
-
-Because Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least [according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all three. Like Node.js. And Opener.
diff --git a/deps/node/deps/npm/node_modules/opener/bin/opener-bin.js b/deps/node/deps/npm/node_modules/opener/bin/opener-bin.js
deleted file mode 100755
index a051ea8f..00000000
--- a/deps/node/deps/npm/node_modules/opener/bin/opener-bin.js
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env node
-"use strict";
-
-var opener = require("..");
-
-opener(process.argv.slice(2), function (error) {
- if (error) {
- throw error;
- }
-});
diff --git a/deps/node/deps/npm/node_modules/opener/lib/opener.js b/deps/node/deps/npm/node_modules/opener/lib/opener.js
deleted file mode 100644
index 5fa88f37..00000000
--- a/deps/node/deps/npm/node_modules/opener/lib/opener.js
+++ /dev/null
@@ -1,66 +0,0 @@
-"use strict";
-var childProcess = require("child_process");
-var os = require("os");
-
-module.exports = function opener(args, options, callback) {
- var platform = process.platform;
-
- // Attempt to detect Windows Subystem for Linux (WSL). WSL itself as Linux (which works in most cases), but in
- // this specific case we need to treat it as actually being Windows. The "Windows-way" of opening things through
- // cmd.exe works just fine here, whereas using xdg-open does not, since there is no X Windows in WSL.
- if (platform === "linux" && os.release().indexOf("Microsoft") !== -1) {
- platform = "win32";
- }
-
- // http://stackoverflow.com/q/1480971/3191, but see below for Windows.
- var command;
- switch (platform) {
- case "win32": {
- command = "cmd.exe";
- break;
- }
- case "darwin": {
- command = "open";
- break;
- }
- default: {
- command = "xdg-open";
- break;
- }
- }
-
- if (typeof args === "string") {
- args = [args];
- }
-
- if (typeof options === "function") {
- callback = options;
- options = {};
- }
-
- if (options && typeof options === "object" && options.command) {
- if (platform === "win32") {
- // *always* use cmd on windows
- args = [options.command].concat(args);
- } else {
- command = options.command;
- }
- }
-
- if (platform === "win32") {
- // On Windows, we really want to use the "start" command. But, the rules regarding arguments with spaces, and
- // escaping them with quotes, can get really arcane. So the easiest way to deal with this is to pass off the
- // responsibility to "cmd /c", which has that logic built in.
- //
- // Furthermore, if "cmd /c" double-quoted the first parameter, then "start" will interpret it as a window title,
- // so we need to add a dummy empty-string window title: http://stackoverflow.com/a/154090/3191
- //
- // Additionally, on Windows ampersand needs to be escaped when passed to "start"
- args = args.map(function (value) {
- return value.replace(/&/g, "^&");
- });
- args = ["/c", "start", "\"\""].concat(args);
- }
-
- return childProcess.execFile(command, args, options, callback);
-};
diff --git a/deps/node/deps/npm/node_modules/opener/package.json b/deps/node/deps/npm/node_modules/opener/package.json
deleted file mode 100644
index e69aa396..00000000
--- a/deps/node/deps/npm/node_modules/opener/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "_from": "opener@1.5.1",
- "_id": "opener@1.5.1",
- "_inBundle": false,
- "_integrity": "sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==",
- "_location": "/opener",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "opener@1.5.1",
- "name": "opener",
- "escapedName": "opener",
- "rawSpec": "1.5.1",
- "saveSpec": null,
- "fetchSpec": "1.5.1"
- },
- "_requiredBy": [
- "#USER",
- "/",
- "/tap"
- ],
- "_resolved": "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz",
- "_shasum": "6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed",
- "_spec": "opener@1.5.1",
- "_where": "/Users/rebecca/code/npm",
- "author": {
- "name": "Domenic Denicola",
- "email": "d@domenic.me",
- "url": "https://domenic.me/"
- },
- "bin": {
- "opener": "bin/opener-bin.js"
- },
- "bugs": {
- "url": "https://github.com/domenic/opener/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Opens stuff, like webpages and files and executables, cross-platform",
- "devDependencies": {
- "eslint": "^5.3.0"
- },
- "files": [
- "lib/",
- "bin/"
- ],
- "homepage": "https://github.com/domenic/opener#readme",
- "license": "(WTFPL OR MIT)",
- "main": "lib/opener.js",
- "name": "opener",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/domenic/opener.git"
- },
- "scripts": {
- "lint": "eslint ."
- },
- "version": "1.5.1"
-}