import { Readable } from "stream" ; /**
 * Converts a buffer to a Readable stream.
 */ export function bufToStream ( buf ) { const result = new Readable ( ) ; result . push ( buf ) ; result . push ( null ) ; return result ; }