0.0.1 • Published 4 years ago

@sms77.io/file-handler v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Sms77.io Logo

A simple utility for reading/writing JSON locally

Installation

npm install @sms77io/file-handler

Usage

import FileHandler from '@sms77.io/file-handler';
import {resolve} from 'path';

const path = resolve(__dirname, '../config.json');
const fileHandler = new FileHandler(path);
const file = fileHandler.read();
console.log(file);