UNPKG
@ezdevlol/memfs
Version:
latest (4.23.0)
4.23.0
In-memory file-system with Node's fs API.
github.com/streamich/memfs
streamich/memfs
@ezdevlol/memfs
/
lib
/
internal
/
buffer.js
8 lines
(7 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
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 };