JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2524959
  • Score
    100M100P100Q206581F
  • License MIT

TypeScript definitions for cross-spawn

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/cross-spawn) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/cross-spawn

    Summary

    This package contains type definitions for cross-spawn (https://github.com/moxystudio/node-cross-spawn).

    Details

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

    index.d.ts

    /// <reference types="node" />
    
    import * as child_process from "child_process";
    
    declare namespace spawn {
        /**
         * The `spawn()` method spawns a new process using the given `command`, with
         * command line arguments in `args`. If omitted, `args` defaults to an empty array.
         */
        const spawn: typeof child_process.spawn;
    
        /**
         * The `spawn.sync()` method spawns a new process using the given `command`, with
         * command line arguments in `args`. If omitted, `args` defaults to an empty array.
         */
        const sync: typeof child_process.spawnSync;
    }
    
    /**
     * The `spawn()` method spawns a new process using the given `command`, with
     * command line arguments in `args`. If omitted, `args` defaults to an empty array.
     */
    declare function spawn(command: string, options: child_process.SpawnOptions): child_process.ChildProcess;
    declare function spawn(
        command: string,
        args?: readonly string[],
        options?: child_process.SpawnOptions,
    ): child_process.ChildProcess;
    
    export = spawn;
    

    Additional Details

    • Last updated: Mon, 20 Nov 2023 23:36:24 GMT
    • Dependencies: @types/node

    Credits

    These definitions were written by Alorel, and ExE Boss.