This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ Dual licensed under WTFPL and MIT:
---
Copyright © 20122018 Domenic Denicola <d@domenic.me>
Copyright © 20122020 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,
@@ -26,7 +26,7 @@ as published by Sam Hocevar. See below for more details.
The MIT License (MIT)
Copyright © 20122018 Domenic Denicola <d@domenic.me>
Copyright © 20122020 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
+1 -2
View File
@@ -34,7 +34,6 @@ 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:
@@ -52,4 +51,4 @@ Like opening the user's browser with a test harness in your package's test scrip
## 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.
Because Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least [according to some person on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all three. Like Node.js. And Opener.
+2 -2
View File
@@ -55,9 +55,9 @@ module.exports = function opener(args, options, callback) {
// 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"
// Additionally, on Windows ampersand and caret need to be escaped when passed to "start"
args = args.map(function (value) {
return value.replace(/&/g, "^&");
return value.replace(/[&^]/g, "^$&");
});
args = ["/c", "start", "\"\""].concat(args);
}
+13 -13
View File
@@ -1,33 +1,33 @@
{
"_args": [
[
"opener@1.5.1",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"opener@1.5.2",
"/home/node/nuxt"
]
],
"_from": "opener@1.5.1",
"_id": "opener@1.5.1",
"_from": "opener@1.5.2",
"_id": "opener@1.5.2",
"_inBundle": false,
"_integrity": "sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==",
"_integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==",
"_location": "/opener",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "opener@1.5.1",
"raw": "opener@1.5.2",
"name": "opener",
"escapedName": "opener",
"rawSpec": "1.5.1",
"rawSpec": "1.5.2",
"saveSpec": null,
"fetchSpec": "1.5.1"
"fetchSpec": "1.5.2"
},
"_requiredBy": [
"/@nuxt/cli",
"/webpack-bundle-analyzer"
],
"_resolved": "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz",
"_spec": "1.5.1",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz",
"_spec": "1.5.2",
"_where": "/home/node/nuxt",
"author": {
"name": "Domenic Denicola",
"email": "d@domenic.me",
@@ -41,7 +41,7 @@
},
"description": "Opens stuff, like webpages and files and executables, cross-platform",
"devDependencies": {
"eslint": "^5.3.0"
"eslint": "^7.7.0"
},
"files": [
"lib/",
@@ -58,5 +58,5 @@
"scripts": {
"lint": "eslint ."
},
"version": "1.5.1"
"version": "1.5.2"
}