Socket
Socket
Sign inDemoInstall

zx

Package Overview
Dependencies
Maintainers
2
Versions
146
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 1.4.0 to 1.5.0

2

index.d.ts

@@ -30,3 +30,3 @@ // Copyright 2021 Google LLC

export function question(query: string, options?: QuestionOptions): Promise<string>
export function question(query?: string, options?: QuestionOptions): Promise<string>

@@ -33,0 +33,0 @@ export class ProcessOutput {

{
"name": "zx",
"version": "1.4.0",
"version": "1.5.0",
"description": "A tool for writing better scripts",

@@ -5,0 +5,0 @@ "main": "index.mjs",

@@ -127,3 +127,3 @@ # 🐚 zx

function question(query: string, options?: QuestionOptions): Promise<string>
function question(query?: string, options?: QuestionOptions): Promise<string>
```

@@ -204,2 +204,9 @@

### `__filename` & `__dirname`
In [ESM](https://nodejs.org/api/esm.html) modules, Node.js does not provide
`__filename` and `__dirname` globals. As such globals really handy in scripts,
`zx` provides such globals, so they can be used in `.mjs` files (via using `zx`
binary).
### Importing from other scripts

@@ -206,0 +213,0 @@

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