Skip to content

Instantly share code, notes, and snippets.

View theatom06's full-sized avatar
🏰
Forge New Frontiers

A^ theatom06

🏰
Forge New Frontiers
  • india
View GitHub Profile
@theatom06
theatom06 / File.ts
Last active September 18, 2023 05:39
A simple and easy node.js file handler that uses the fs/promises library for handling files.
import fs from 'fs/promises';
/**
* A class for reading, writing, and appending data to a file.
*/
class FileJS {
/**
* The name of the file to read, write, or append to.
*/
private fileName: string;