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

zx

Package Overview
Dependencies
Maintainers
2
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zx - npm Package Compare versions

Comparing version 8.1.2-dev.b3fcad2 to 8.1.2-dev.e82f701

13

build/cli.d.ts
#!/usr/bin/env node
export {};
import { minimist } from './index.js';
export declare function printUsage(): void;
export declare const argv: minimist.ParsedArgs;
export declare function main(): Promise<void>;
export declare function runScript(script: string): Promise<void>;
export declare function scriptFromStdin(): Promise<boolean>;
export declare function scriptFromHttp(remote: string): Promise<void>;
export declare function writeAndImport(script: string | Buffer, filepath: string, origin?: string): Promise<void>;
export declare function importPath(filepath: string, origin?: string): Promise<void>;
export declare function injectGlobalRequire(origin: string): void;
export declare function transformMarkdown(buf: Buffer): string;
export declare function getVersion(): string;

@@ -5,7 +5,27 @@ #!/usr/bin/env node

const {
argv,
getVersion,
importPath,
injectGlobalRequire,
main,
printUsage,
runScript,
scriptFromHttp,
scriptFromStdin,
transformMarkdown,
writeAndImport
} = require('./cli.cjs')
export {
argv,
getVersion,
importPath,
injectGlobalRequire,
main,
printUsage,
runScript,
scriptFromHttp,
scriptFromStdin,
transformMarkdown,
writeAndImport
}

6

build/core.d.ts

@@ -125,8 +125,8 @@ import { spawn, spawnSync, StdioOptions, IOType } from 'node:child_process';

export type LogEntry = {
verbose?: boolean;
} & ({
kind: 'cmd';
verbose: boolean;
cmd: string;
} | {
kind: 'stdout' | 'stderr';
verbose: boolean;
data: Buffer;

@@ -146,4 +146,4 @@ } | {

data: any;
};
});
export declare function log(entry: LogEntry): void;
export {};
{
"name": "zx",
"version": "8.1.2-dev.b3fcad2",
"version": "8.1.2-dev.e82f701",
"description": "A tool for writing better scripts",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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