diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2014-10-17 09:24:49 +0400 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-10-17 09:24:49 +0400 |
commit | 3d75180c2cc79fa3adfa0e4cb783a27192189a65 (patch) | |
tree | b532b4a57ae4063988e39cf1f7f69413536c4502 | |
parent | 8e2703f78d280d1edeb749e257dda1f288bad6e3 (diff) |
opener@1.4.0
Added gratuitous return statement.
-rw-r--r-- | node_modules/opener/LICENSE.txt | 33 | ||||
-rw-r--r-- | node_modules/opener/README.md | 101 | ||||
-rwxr-xr-x | node_modules/opener/opener.js | 2 | ||||
-rw-r--r-- | node_modules/opener/package.json | 30 | ||||
-rw-r--r-- | package.json | 2 |
5 files changed, 101 insertions, 67 deletions
diff --git a/node_modules/opener/LICENSE.txt b/node_modules/opener/LICENSE.txt index 600088539..0407ecda8 100644 --- a/node_modules/opener/LICENSE.txt +++ b/node_modules/opener/LICENSE.txt @@ -1,14 +1,19 @@ - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
- Version 2, December 2004
-
- Copyright (C) 2012 Domenic Denicola <domenic@domenicdenicola.com>
-
- 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.
-
+Copyright © 2012–2014 Domenic Denicola <domenic@domenicdenicola.com> + +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. diff --git a/node_modules/opener/README.md b/node_modules/opener/README.md index fc6436544..8a803f338 100644 --- a/node_modules/opener/README.md +++ b/node_modules/opener/README.md @@ -1,44 +1,57 @@ -# 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");
-```
-
-## 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.
+# 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/node_modules/opener/opener.js b/node_modules/opener/opener.js index 5477da52b..3f95d0635 100755 --- a/node_modules/opener/opener.js +++ b/node_modules/opener/opener.js @@ -38,7 +38,7 @@ function opener(args, options, callback) { args = ["/c", "start", '""'].concat(args); } - childProcess.execFile(command, args, options, callback); + return childProcess.execFile(command, args, options, callback); } // Export `opener` for programmatic access. diff --git a/node_modules/opener/package.json b/node_modules/opener/package.json index 0d18470bd..b62915e6e 100644 --- a/node_modules/opener/package.json +++ b/node_modules/opener/package.json @@ -1,11 +1,11 @@ { "name": "opener", "description": "Opens stuff, like webpages and files and executables, cross-platform", - "version": "1.3.0", + "version": "1.4.0", "author": { "name": "Domenic Denicola", "email": "domenic@domenicdenicola.com", - "url": "http://domenicdenicola.com" + "url": "http://domenic.me/" }, "license": "WTFPL", "repository": { @@ -23,12 +23,28 @@ "lint": "jshint opener.js" }, "devDependencies": { - "jshint": ">= 0.9.0" + "jshint": "^2.5.4" }, - "readme": "# It Opens Stuff\r\n\r\nThat is, in your desktop environment. This will make *actual windows pop up*, with stuff in them:\r\n\r\n```bash\r\nnpm install opener -g\r\n\r\nopener http://google.com\r\nopener ./my-file.txt\r\nopener firefox\r\nopener npm run lint\r\n```\r\n\r\nAlso if you want to use it programmatically you can do that too:\r\n\r\n```js\r\nvar opener = require(\"opener\");\r\n\r\nopener(\"http://google.com\");\r\nopener(\"./my-file.txt\");\r\nopener(\"firefox\");\r\nopener(\"npm run lint\");\r\n```\r\n\r\n## Use It for Good\r\n\r\nLike opening the user's browser with a test harness in your package's test script:\r\n\r\n```json\r\n{\r\n \"scripts\": {\r\n \"test\": \"opener ./test/runner.html\"\r\n },\r\n \"devDependencies\": {\r\n \"opener\": \"*\"\r\n }\r\n}\r\n```\r\n\r\n## Why\r\n\r\nBecause Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least\r\n[according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all\r\nthree. Like Node.js. And Opener.\r\n", - "_id": "opener@1.3.0", + "gitHead": "b9d36d4f82c26560acdadbabbb10ddba46a30dc5", + "homepage": "https://github.com/domenic/opener", + "_id": "opener@1.4.0", + "_shasum": "d11f86eeeb076883735c9d509f538fe82d10b941", + "_from": "opener@>=1.4.0 <1.5.0", + "_npmVersion": "1.4.23", + "_npmUser": { + "name": "domenic", + "email": "domenic@domenicdenicola.com" + }, + "maintainers": [ + { + "name": "domenic", + "email": "domenic@domenicdenicola.com" + } + ], "dist": { - "shasum": "d72b4b2e61b0a4ca7822a7554070620002fb90d9" + "shasum": "d11f86eeeb076883735c9d509f538fe82d10b941", + "tarball": "http://registry.npmjs.org/opener/-/opener-1.4.0.tgz" }, - "_from": "opener@latest" + "directories": {}, + "_resolved": "https://registry.npmjs.org/opener/-/opener-1.4.0.tgz" } diff --git a/package.json b/package.json index a07907d9b..003a12f90 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "npm-user-validate": "~0.1.1", "npmlog": "~0.1.1", "once": "~1.3.1", - "opener": "~1.3.0", + "opener": "~1.4.0", "osenv": "~0.1.0", "path-is-inside": "~1.0.0", "read": "~1.0.4", |