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.15.2 to 2.0.0

14

index.d.ts

@@ -17,6 +17,7 @@ // Copyright 2021 Google LLC

import {Readable, Writable} from 'stream'
import {createReadStream, createWriteStream, promises as fsPromises, constants as fsConstants} from 'fs'
import * as _fs from 'fs-extra'
import * as _os from 'os'
import * as _chalk from 'chalk'
import _fetch from 'node-fetch'
import {ParsedArgs} from 'minimist'

@@ -54,7 +55,2 @@ interface $ {

type cd = (path: string) => void
type fs = typeof fsPromises & {
constants: typeof fsConstants
createWriteStream: typeof createWriteStream
createReadStream: typeof createReadStream
}
type nothrow = (p: ProcessPromise<ProcessOutput>) => ProcessPromise<ProcessOutput>

@@ -65,6 +61,7 @@ type question = (query?: string, options?: QuestionOptions) => Promise<string>

export const $: $
export const argv: ParsedArgs
export const cd: cd
export const chalk: typeof _chalk
export const fetch: typeof _fetch
export const fs: fs
export const fs: typeof _fs
export const nothrow: nothrow

@@ -77,2 +74,3 @@ export const os: typeof _os

var $: $
var argv: ParsedArgs
var cd: cd

@@ -82,3 +80,3 @@ var chalk: typeof _chalk

var fetch: typeof _fetch
var fs: fs
var fs: typeof _fs
var nothrow: nothrow

@@ -85,0 +83,0 @@ var os: typeof _os

{
"name": "zx",
"version": "1.15.2",
"version": "2.0.0",
"description": "A tool for writing better scripts",

@@ -11,3 +11,3 @@ "main": "index.mjs",

"engines": {
"node": ">= 15.0.0"
"node": ">= 14.8.0"
},

@@ -18,5 +18,9 @@ "scripts": {

"dependencies": {
"@types/fs-extra": "^9.0.11",
"@types/minimist": "^1.2.1",
"@types/node": "^16.0",
"@types/node-fetch": "^2.5.10",
"chalk": "^4.1.1",
"fs-extra": "^10.0.0",
"minimist": "^1.2.5",
"node-fetch": "^2.6.1",

@@ -23,0 +27,0 @@ "which": "^2.0.2"

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

Node.js >= 15.0.0
Node.js >= 14.8.0

@@ -225,9 +225,4 @@ ## Documentation

The [fs](https://nodejs.org/api/fs.html#fs_promises_api) package.
The [fs-extra](https://www.npmjs.com/package/fs-extra) package.
> Same as if you write:
> ```js
> import {promises as fs} from 'fs'
> ```
```js

@@ -245,2 +240,8 @@ let content = await fs.readFile('./package.json')

#### `minimist` package
The [minimist](https://www.npmjs.com/package/minimist) package.
Available as global const `argv`.
### Configuration

@@ -256,2 +257,4 @@

Or use a CLI argument: `--shell=/bin/bash`
#### `$.prefix`

@@ -263,2 +266,4 @@

Or use a CLI argument: `--prefix='set -e;'`
#### `$.quote`

@@ -276,2 +281,4 @@

Or use a CLI argument `--quiet` to set `$.verbose = false`.
### Polyfills

@@ -278,0 +285,0 @@

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