UNPKG
@produck/json-index-archive
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
@produck/json-index-archive
/
src
/
FileSystem
/
Implement
/
ReadFile.mjs
7 lines
(5 loc)
•
206 B
JavaScript
View Raw
1
2
3
4
5
6
7
/** @param {import('../Constructor.mjs').FileSystem} self */
export
default
async
(
self, pathname, ...options
)
=> {
const
handle =
await
self.open(pathname);
return
await
handle.readFile(...options); };