MyGit

8.1.1

google/zx

版本发布时间: 2024-05-23 18:51:45

google/zx最新发布版本:8.1.4(2024-07-04 18:44:34)

This release brings a pinch of sugar and minor fixes.

Features

$.preferLocal = true

await $`c8 npm test`

await $({ preferLocal: true })`eslint .`
const p = $`echo 'foo\nbar'`

await p.text()        // foo\n\bar\n
await p.text('hex')   //  666f6f0a0861720a
await p.buffer()      //  Buffer.from('foo\n\bar\n')
await p.lines()       // ['foo', 'bar']
await $`echo '{"foo": "bar"}'`.json() // {foo: 'bar'}
const p = $`sleep 999`
const {signal} = p

const res = fetch('https://example.com', {signal})

setTimeout(() => p.abort('reason'), 1000)

Fixes

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-05-23发行的版本