UNPKG

@pkerschbaum/code-oss-file-service

Version:

VS Code ([microsoft/vscode](https://github.com/microsoft/vscode)) includes a rich "`FileService`" and "`DiskFileSystemProvider`" abstraction built on top of Node.js core modules (`fs`, `path`) and Electron's `shell` module. This package allows to use that

17 lines 527 B
/// <reference types="node" /> /** * Convenient way to iterate over output line by line. This helper accommodates for the fact that * a buffer might not end with new lines all the way. * * To use: * - call the write method * - forEach() over the result to get the lines */ export declare class LineDecoder { private stringDecoder; private remaining; constructor(encoding?: BufferEncoding); write(buffer: Buffer): string[]; end(): string | null; } //# sourceMappingURL=decoder.d.ts.map