Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@node-kit/extra.cp
Advanced tools
Some shared extra utilities for nodejs build-in child_process modules
# use pnpm
$ pnpm install -D @node-kit/extra.cp
# use yarn
$ yarn add -D @node-kit/extra.cp
# use npm
$ npm install -D @node-kit/extra.cp
use import
import { execa, execaSync } from '@node-kit/extra.cp'
execa().then(() => {})
use require
const { execa, execaSync } = require('@node-kit/extra.cp')
execa().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 | - |
import type {
ExecFileOptions,
ExecFileOptionsWithBufferEncoding,
ExecFileOptionsWithStringEncoding,
ExecFileSyncOptions,
ExecFileSyncOptionsWithBufferEncoding,
ExecFileSyncOptionsWithStringEncoding
} from 'node:child_process'
import type { ObjectEncodingOptions } from 'node:fs'
declare function execa(
file: string,
args?: ReadonlyArray<string> | undefined | null,
options?:
| ExecFileOptions
| ((ObjectEncodingOptions & ExecFileOptions) | undefined | null)
| ExecFileOptionsWithBufferEncoding
| ExecFileOptionsWithStringEncoding
): Promise<{
stdout: string | Buffer
stderr: string | Buffer
}>
declare function execaSync(
file: string,
args?: ReadonlyArray<string>,
options?:
| ExecFileSyncOptions
| ExecFileSyncOptionsWithBufferEncoding
| ExecFileSyncOptionsWithStringEncoding
): string | Buffer
import { execa, execaSync } from '@node-kit/extra.cp'
execa().then(() => {})
Please open an issue here.
2023.08.28 v3.2.0
FAQs
Some shared extra utilities for nodejs build-in child_process modules
The npm package @node-kit/extra.cp receives a total of 18 weekly downloads. As such, @node-kit/extra.cp popularity was classified as not popular.
We found that @node-kit/extra.cp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.