We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6225e5 commit 93b982cCopy full SHA for 93b982c
src/adapters/TextFile.ts
@@ -1,4 +1,4 @@
1
-import fs from 'fs'
+import fs from 'fs/promises'
2
import { Writer } from 'steno'
3
4
import { Adapter } from '../Low.js'
@@ -16,7 +16,7 @@ export class TextFile implements Adapter<string> {
16
let data
17
18
try {
19
- data = await fs.promises.readFile(this.#filename, 'utf-8')
+ data = await fs.readFile(this.#filename, 'utf-8')
20
} catch (e) {
21
if ((e as NodeJS.ErrnoException).code === 'ENOENT') {
22
return null
0 commit comments