MCPcopy Create free account
hub / github.com/sindresorhus/execa / createFileReadStream

Function createFileReadStream

test/stdio/node-stream-native.js:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58test('stdio[*] cannot be a Node.js Duplex without a file descriptor', testNoFileStream, 3, noopDuplex());
59
60const createFileReadStream = async () => {
61 const filePath = tempfile();
62 await writeFile(filePath, 'foobar');
63 const stream = createReadStream(filePath);
64 await once(stream, 'open');
65 return {stream, filePath};
66};
67
68const createFileWriteStream = async () => {
69 const filePath = tempfile();

Callers 3

testFileReadableFunction · 0.85
testFileReadableErrorFunction · 0.85
testFileReadableOpenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected