input.js
This file
Path
test/helpers/input.js
19 lines · 983 bytes · JavaScript
Last changed by
Improve `encoding` option (#958)ehmickybefore adoption507b09c
History of this fileTake it
The walk stopped after 200 commits: lines older than db95b51 point at it.
Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51
lines 1–5why, one step back1import {Buffer} from 'node:buffer';23const textEncoder = new TextEncoder();45export const foobarString = 'foobar';Allow template strings with all methods (#933)ehmickybefore adoption8074d85
line 6why, one step back6export const foobarArray = ['foo', 'bar'];Add support for `buffer: false` to `execaSync()` (#953)ehmickybefore adoptiond0052ac
line 7why, one step back7export const foobarUint8Array = textEncoder.encode(foobarString);Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51
lines 8–10why, one step back8export const foobarArrayBuffer = foobarUint8Array.buffer;9export const foobarUint16Array = new Uint16Array(foobarArrayBuffer);10export const foobarBuffer = Buffer.from(foobarString);Fix using both `encoding: 'utf16le'` and `lines`/`verbose` options (#931)ehmickybefore adoptiona480e1d
line 11why, one step back11const foobarUtf16Buffer = Buffer.from(foobarString, 'utf16le');Improve `encoding` option (#958)ehmickybefore adoption507b09c
line 12why, one step back12export const foobarUtf16Uint8Array = new Uint8Array(foobarUtf16Buffer);Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51
line 13why, one step back13export const foobarDataView = new DataView(foobarArrayBuffer);Refactor tests (#934)ehmickybefore adoption52c4bde
lines 14–15why, one step back14export const foobarHex = foobarBuffer.toString('hex');15export const foobarUppercase = foobarString.toUpperCase();Add support for `buffer: false` to `execaSync()` (#953)ehmickybefore adoptiond0052ac
line 16why, one step back16export const foobarUppercaseUint8Array = textEncoder.encode(foobarUppercase);Add support for `std*: duplex` option (#937)ehmickybefore adoption6ca44fb
line 17why, one step back17export const foobarUppercaseHex = Buffer.from(foobarUppercase).toString('hex');Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51
lines 18–19why, one step back18export const foobarObject = {foo: 'bar'};19export const foobarObjectString = JSON.stringify(foobarObject);