WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few weeks ago zx took a part in OSS Library Night 🎉
Many thanks to the organizers and contributors who have boosted the project with their pull requests!
Today we are releasing the zx with a huge bunch of new features and improvements.
Features
API
Implemented [Symbol.asyncIterator] API for ProcessPromise#984#998#1000
Now you can iterate over the process output using for await loop from any point of the process execution.
constac=newAbortController()const{ signal }=acconstp=$({ signal,nothrow: true})`echo test`.pipe`sleep 999`setTimeout(()=>ac.abort(),50)try{awaitp}catch({ message }){message// The operation was aborted}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
A few weeks ago zx took a part in OSS Library Night 🎉
Many thanks to the organizers and contributors who have boosted the project with their pull requests!
Today we are releasing the zx with a huge bunch of new features and improvements.
Features
API
[Symbol.asyncIterator]API forProcessPromise#984 #998 #1000Now you can iterate over the process output using
for awaitloop from any point of the process execution.Pipes
pipe()#1023signalhandling on piping #992CLI
$.defaultssetting viaZX_-prefixed environment variables #988 #998ZX_VERBOSE=true ZX_SHELL='/bin/bash' zx script.mjs--envoption to load dotenvs 1022 #1030--prefer-localoption #1015Fixes
process.exit()#993 #997ZX_SHELLenv handling #1024Docs
mainbranch #985Chores
.node_versionto improve contributors devx #1012chalkupdated to v5.4.1 #1019Merry Christmas! 🎄🎅🎁
This discussion was created from the release 8.3.0 – Pipes of Steel.
Beta Was this translation helpful? Give feedback.
All reactions