Comparing version 1.14.1 to 1.14.2
@@ -17,3 +17,3 @@ // Copyright 2021 Google LLC | ||
import {Readable, Writable} from 'stream' | ||
import {createReadStream, createWriteStream, promises as _fs} from 'fs' | ||
import {createReadStream, createWriteStream, promises as fsPromises, constants as fsConstants} from 'fs' | ||
import * as _os from 'os' | ||
@@ -54,3 +54,4 @@ import * as _chalk from 'chalk' | ||
type cd = (path: string) => void | ||
type fs = typeof _fs & { | ||
type fs = typeof fsPromises & { | ||
constants: typeof fsConstants | ||
createWriteStream: typeof createWriteStream | ||
@@ -74,12 +75,12 @@ createReadStream: typeof createReadStream | ||
declare global { | ||
const $: $ | ||
const cd: cd | ||
const chalk: typeof _chalk | ||
var $: $ | ||
var cd: cd | ||
var chalk: typeof _chalk | ||
// @ts-ignore | ||
const fetch: typeof _fetch | ||
const fs: fs | ||
const nothrow: nothrow | ||
const os: typeof _os | ||
const question: question | ||
const sleep: sleep | ||
var fetch: typeof _fetch | ||
var fs: fs | ||
var nothrow: nothrow | ||
var os: typeof _os | ||
var question: question | ||
var sleep: sleep | ||
} |
{ | ||
"name": "zx", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "A tool for writing better scripts", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
@@ -34,2 +34,6 @@ # 🐚 zx | ||
### Requirement | ||
Node.js >= 14.8.0 | ||
## Documentation | ||
@@ -63,3 +67,3 @@ | ||
Executes a given string using the `exec` function from the | ||
Executes a given string using the `spawn` function from the | ||
`child_process` package and returns `ProcessPromise<ProcessOutput>`. | ||
@@ -222,4 +226,9 @@ | ||
The [fs](https://nodejs.org/api/fs.html) package. | ||
The [fs](https://nodejs.org/api/fs.html#fs_promises_api) package. | ||
> Same as if you write: | ||
> ```js | ||
> import {promises as fs} from 'fs' | ||
> ``` | ||
```js | ||
@@ -325,3 +334,3 @@ let content = await fs.readFile('./package.json') | ||
The `zx` can execute scripts written in markdown | ||
([examples/index.md](examples/markdown.md)): | ||
([examples/markdown.md](examples/markdown.md)): | ||
@@ -328,0 +337,0 @@ ```bash |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36344
594
381