graceful-send-string.js
This file
Path
test/fixtures/graceful-send-string.js
6 lines · 181 bytes · JavaScript
Last changed by
Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454
History of this fileTake it
Add `gracefulCancel` option (#1109)ehmickybefore adoptiond8190e5
lines 1–2why, one step back1#!/usr/bin/env node2import {foobarString} from '../helpers/input.js';Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454
line 3why, one step back3import {getCancelSignal, sendMessage} from 'execa';Add `gracefulCancel` option (#1109)ehmickybefore adoptiond8190e5
lines 4–6why, one step back45await getCancelSignal();6await sendMessage(foobarString);