UNPKG

@ezdevlol/memfs

Version:

In-memory file-system with Node's fs API.

8 lines (7 loc) 293 B
import { Buffer } from 'buffer'; function bufferV0P12Ponyfill(arg0, ...args) { return new Buffer(arg0, ...args); } const bufferAllocUnsafe = Buffer.allocUnsafe || bufferV0P12Ponyfill; const bufferFrom = Buffer.from || bufferV0P12Ponyfill; export { Buffer, bufferAllocUnsafe, bufferFrom };