Socket
Socket
Sign inDemoInstall

timeout-cli

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timeout-cli - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc