mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-11-19 09:21:07 +08:00
* Add getExecOutput function * Add tests for exec output * Modify tests to not rely on buffer size, but only test larger output * Handle split multi-byte characters + PR feedback * Fix tests * Lint * Update how split byte are sent for tests
6 lines
232 B
JavaScript
6 lines
232 B
JavaScript
//first half of © character
|
|
process.stdout.write(Buffer.from([0xC2]), (err) => {
|
|
//write in the callback so that the second byte is sent separately
|
|
process.stdout.write(Buffer.from([0xA9])) //second half of © character
|
|
})
|