@adonisjs/bodyparser
Version:
AdonisJs body parser to read and parse HTTP request bodies
10 lines (9 loc) • 430 B
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import { Readable } from 'stream';
/**
* Writes readable stream to the given location by properly cleaning up readable
* and writable streams in case of any errors. Also an optional data listener
* can listen for the `data` event.
*/
export declare function streamFile(readStream: Readable, location: string, dataListener?: (line: Buffer) => void): Promise<void>;