Gathering detailed insights and metrics for @node-kit/extra.cp
Gathering detailed insights and metrics for @node-kit/extra.cp
npm install @node-kit/extra.cp
Typescript
Module System
Node Version
NPM Version
69.5
Supply Chain
99.3
Quality
77.5
Maintenance
100
Vulnerability
100
License
TypeScript (93.53%)
JavaScript (6.37%)
Shell (0.1%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
9,122
Last Day
2
Last Week
21
Last Month
128
Last Year
4,273
MIT License
22 Stars
109 Commits
2 Forks
2 Watchers
8 Branches
2 Contributors
Updated on Nov 26, 2024
Latest Version
3.3.1
Package Id
@node-kit/extra.cp@3.3.1
Unpacked Size
10.48 kB
Size
3.32 kB
File Count
7
NPM Version
10.8.2
Node Version
18.20.5
Published on
Nov 26, 2024
Cumulative downloads
Total Downloads
Last Day
0%
2
Compared to previous day
Last Week
40%
21
Compared to previous week
Last Month
-54.3%
128
Compared to previous month
Last Year
-11.9%
4,273
Compared to previous year
1
1# use pnpm 2$ pnpm install -D @node-kit/extra.cp 3 4# use yarn 5$ yarn add -D @node-kit/extra.cp 6 7# use npm 8$ npm install -D @node-kit/extra.cp
use import
1import { execa, execaSync } from '@node-kit/extra.cp' 2 3execa().then(() => {})
use require
1const { execa, execaSync } = require('@node-kit/extra.cp') 2 3execa().then(() => {})
make exec
behave like execa
execa(file, args, options) & execaSync(file, args, options)
Param | Description | Type | Optional value | Required | Default value |
---|---|---|---|---|---|
file | The name or path of the executable file to run. | string | - | true | - |
args | List of string arguments. | ReadonlyArray<string> | - | false | - |
options | Options for execFile | object | - | false | - |
1import type { 2 ExecFileOptions, 3 ExecFileOptionsWithBufferEncoding, 4 ExecFileOptionsWithStringEncoding, 5 ExecFileSyncOptions, 6 ExecFileSyncOptionsWithBufferEncoding, 7 ExecFileSyncOptionsWithStringEncoding 8} from 'node:child_process' 9import type { ObjectEncodingOptions } from 'node:fs' 10 11declare function execa( 12 file: string, 13 args?: ReadonlyArray<string> | undefined | null, 14 options?: 15 | ExecFileOptions 16 | ((ObjectEncodingOptions & ExecFileOptions) | undefined | null) 17 | ExecFileOptionsWithBufferEncoding 18 | ExecFileOptionsWithStringEncoding 19): Promise<{ 20 stdout: string | Buffer 21 stderr: string | Buffer 22}> 23 24declare function execaSync( 25 file: string, 26 args?: ReadonlyArray<string>, 27 options?: 28 | ExecFileSyncOptions 29 | ExecFileSyncOptionsWithBufferEncoding 30 | ExecFileSyncOptionsWithStringEncoding 31): string | Buffer
1import { execa, execaSync } from '@node-kit/extra.cp' 2 3execa().then(() => {})
Please open an issue here.
No vulnerabilities found.
No security vulnerabilities found.