UNPKG

scanpack

Version:

Dependency scanner to detect unknown or malicious packages in Node.js and Bun projects

11 lines 321 B
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