Comparing version 5.1.0 to 5.2.0
@@ -35,3 +35,3 @@ 'use strict'; | ||
cmd = 'cmd' + (isWsl ? '.exe' : ''); | ||
args.push('/c', 'start', '""'); | ||
args.push('/c', 'start', '""', '/b'); | ||
target = target.replace(/&/g, '^&'); | ||
@@ -63,4 +63,6 @@ | ||
// `xdg-open` will block the process unless | ||
// stdio is ignored even if it's unref'd | ||
// stdio is ignored and it's detached from the parent | ||
// even if it's unref'd | ||
cpOpts.stdio = 'ignore'; | ||
cpOpts.detached = true; | ||
} | ||
@@ -67,0 +69,0 @@ } |
108
package.json
{ | ||
"name": "opn", | ||
"version": "5.1.0", | ||
"description": "A better node-open. Opens stuff like websites, files, executables. Cross-platform.", | ||
"license": "MIT", | ||
"repository": "sindresorhus/opn", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"xdg-open" | ||
], | ||
"keywords": [ | ||
"app", | ||
"open", | ||
"opn", | ||
"opener", | ||
"opens", | ||
"launch", | ||
"start", | ||
"xdg-open", | ||
"xdg", | ||
"default", | ||
"cmd", | ||
"browser", | ||
"editor", | ||
"executable", | ||
"exe", | ||
"url", | ||
"urls", | ||
"arguments", | ||
"args", | ||
"spawn", | ||
"exec", | ||
"child", | ||
"process", | ||
"website", | ||
"file" | ||
], | ||
"dependencies": { | ||
"is-wsl": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
"name": "opn", | ||
"version": "5.2.0", | ||
"description": "A better node-open. Opens stuff like websites, files, executables. Cross-platform.", | ||
"license": "MIT", | ||
"repository": "sindresorhus/opn", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"xdg-open" | ||
], | ||
"keywords": [ | ||
"app", | ||
"open", | ||
"opn", | ||
"opener", | ||
"opens", | ||
"launch", | ||
"start", | ||
"xdg-open", | ||
"xdg", | ||
"default", | ||
"cmd", | ||
"browser", | ||
"editor", | ||
"executable", | ||
"exe", | ||
"url", | ||
"urls", | ||
"arguments", | ||
"args", | ||
"spawn", | ||
"exec", | ||
"child", | ||
"process", | ||
"website", | ||
"file" | ||
], | ||
"dependencies": { | ||
"is-wsl": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
} |
@@ -18,3 +18,3 @@ # opn | ||
``` | ||
$ npm install --save opn | ||
$ npm install opn | ||
``` | ||
@@ -21,0 +21,0 @@ |
Sorry, the diff of this file is not supported yet
76
31020