scanpack
Version:
Dependency scanner to detect unknown or malicious packages in Node.js and Bun projects
11 lines • 321 B
JavaScript
import { readFileSync } from 'node:fs';
import { readFile } from 'node:fs/promises';
export class FileSystemAdapter {
async readFile(path) {
return await readFile(path, 'utf-8');
}
readFileSync(path) {
return readFileSync(path, 'utf-8');
}
}
//# sourceMappingURL=file-system.adapter.js.map