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

zx

Package Overview
Dependencies
Maintainers
2
Versions
154
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 4.3.0 to 5.0.0

6

index.d.ts

@@ -21,3 +21,4 @@ // Copyright 2021 Google LLC

import * as _path from 'path'
import * as _chalk from 'chalk'
import {ChalkInstance} from 'chalk'
import * as _yaml from 'yaml'
import _fetch from 'node-fetch'

@@ -65,4 +66,5 @@ import {ParsedArgs} from 'minimist'

export const cd: cd
export const chalk: typeof _chalk
export const chalk: ChalkInstance
export const fetch: typeof _fetch
export const YAML: typeof _yaml
export const fs: typeof _fs

@@ -69,0 +71,0 @@ export const glob: typeof _globby.globby & typeof _globby

{
"name": "zx",
"version": "4.3.0",
"description": "A tool for writing better scripts",
"main": "./dist/index.cjs",
"version": "5.0.0",
"description": "A tool for writing better scripts.",
"main": "./index.mjs",
"exports": {
".": {
"import": "./index.mjs",
"require": "./dist/index.cjs"
},
"./globals": {
"import": "./globals.mjs",
"require": "./dist/globals.cjs"
}
".": "./index.mjs",
"./globals": "./globals.mjs"
},

@@ -21,26 +15,21 @@ "types": "index.d.ts",

"engines": {
"node": ">= 14.13.1"
"node": ">= 16.0.0"
},
"scripts": {
"test": "node zx.mjs test.mjs",
"build": "node zx.mjs .github/scripts/build.mjs"
"test": "node zx.mjs test.mjs"
},
"dependencies": {
"@types/fs-extra": "^9.0.12",
"@types/fs-extra": "^9.0.13",
"@types/minimist": "^1.2.2",
"@types/node": "^16.6",
"@types/node-fetch": "^2.5.12",
"chalk": "^4.1.2",
"@types/node": "^17.0",
"@types/node-fetch": "^3.0.2",
"chalk": "^5.0.0",
"fs-extra": "^10.0.0",
"globby": "^12.0.1",
"globby": "^13.1.1",
"minimist": "^1.2.5",
"node-fetch": "^2.6.1",
"node-fetch": "^3.2.0",
"ps-tree": "^1.2.0",
"which": "^2.0.2"
"which": "^2.0.2",
"yaml": "^1.10.2"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"rollup": "^2.56.3"
},
"publishConfig": {

@@ -51,4 +40,3 @@ "registry": "https://wombat-dressing-room.appspot.com"

"*.mjs",
"*.d.ts",
"dist"
"*.d.ts"
],

@@ -55,0 +43,0 @@ "repository": "google/zx",

@@ -34,6 +34,4 @@ # 🐚 zx

### Requirement
**Requirement**: Node version >= 16.0.0
Node.js >= 14.13.1
## Documentation

@@ -237,2 +235,10 @@

#### `yaml` package
The [yaml](https://www.npmjs.com/package/yaml) package.
```js
console.log(YAML.parse('foo: bar').foo)
```
#### `fs` package

@@ -394,8 +400,28 @@

Compile the TypeScript to JS and run it. Or use something like ts-node.
Use [ts-node](https://github.com/TypeStrong/ts-node#native-ecmascript-modules) as
a esm node [loader](https://nodejs.org/api/esm.html#esm_experimental_loaders).
```bash
ts-node script.ts
node --loader ts-node/esm script.ts
```
You must set [`"type": "module"`](https://nodejs.org/api/packages.html#packages_type)
in `package.json` and [`"module": "ESNext"`](https://www.typescriptlang.org/tsconfig/#module)
in `tsconfig.json`.
```json
{
"type": "module"
}
```
```json
{
"compilerOptions": {
"module": "ESNext"
}
}
```
#### Executing remote scripts

@@ -402,0 +428,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