timeout-cli
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "timeout-cli", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "An Rx-version of child_process.spawn", | ||
"scripts": { | ||
"doc": "echo \"esdoc may not work correctly\" && esdoc -c ./esdoc.json", | ||
"compile": "tsc", | ||
"prepublish": "npm run compile", | ||
"lint": "tslint \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"test": "mocha --compilers ts:ts-node/register ./test/*", | ||
"build": "npm-run-all compile lint test" | ||
"timeout": "lib/src/index.js" | ||
}, | ||
@@ -13,0 +8,0 @@ "repository": { |
@@ -8,3 +8,2 @@ # timeout-cli: GNU timeout for node | ||
``` | ||
~\code\paulcbetts\timeout-cli [master]> .\node_modules\.bin\ts-node .\src\timeout-cli.ts --help | ||
Usage: timeout-cli -- some-cmd 1 2 3 | ||
@@ -11,0 +10,0 @@ Execute a command and exit if it doesn't terminate in a certain amount of time |
@@ -51,3 +51,3 @@ import * as yargs from 'yargs'; | ||
const numPart = /^[0-9]+(\.[0-9]+)?/; | ||
function parseTime(time: string): number { | ||
export function parseTime(time: string): number { | ||
const m = time.match(numPart); | ||
@@ -63,3 +63,3 @@ if (!m || !m[0]) throw new Error(`${time} can't be parsed!`); | ||
function spawnNoisyDetached(cmd: string, args: string[], opts?: any): Observable<undefined> { | ||
export function spawnNoisyDetached(cmd: string, args: string[], opts?: any): Observable<undefined> { | ||
let ret = spawnDetached(cmd, args, opts).publish(); | ||
@@ -66,0 +66,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39556
20