Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/npmcli__promise-spawn

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/npmcli__promise-spawn

TypeScript definitions for @npmcli/promise-spawn

  • 6.0.0
  • ts4.2
  • ts4.3
  • ts4.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15K
decreased by-46.74%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/npmcli__promise-spawn

Summary

This package contains type definitions for @npmcli/promise-spawn (https://github.com/npm/promise-spawn#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npmcli__promise-spawn.

index.d.ts

// Type definitions for @npmcli/promise-spawn 6.0
// Project: https://github.com/npm/promise-spawn#readme
// Definitions by: Anton Golub <https://github.com/antongolub>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />

import { SpawnOptions, spawn } from 'child_process';

type NativeSpawnResult = ReturnType<typeof spawn>;

type SpawnResult<Output, Extra> = Promise<{
    cmd: string;
    args: string[];
    code: number;
    signal: NodeJS.Signals | null;
    stdout: Output;
    stderr: Output;
} & Extra> & { process: NativeSpawnResult, stdio: NativeSpawnResult['stdio'] };

type PromiseSpawnOptions = {
    cwd?: string;
    stdioString?: boolean;
} & SpawnOptions;

declare const promiseSpawn: {
    <O extends PromiseSpawnOptions = PromiseSpawnOptions>(
        cmd: string,
        args: string[],
        opts?: O,
        extra?: Record<any, any>,
    ): SpawnResult<O extends { stdioString: false } ? Buffer : string, typeof extra>;
    open<O extends PromiseSpawnOptions & { command?: string } = PromiseSpawnOptions & { command?: string }>(
        args: string | string[],
        opts?: O,
        extra?: Record<any, any>,
    ): SpawnResult<O extends { stdioString: false } ? Buffer : string, typeof extra>;
};

export = promiseSpawn;

Additional Details

  • Last updated: Mon, 12 Dec 2022 13:33:14 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Anton Golub.

FAQs

Package last updated on 12 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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