Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

kevast/kevast-file.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kevast-file.js

Build Status Coverage Status Dependencies Dev Dependencies Package Version Open Issues MIT License

A file storage for kevast.js.

Installation

Using yarn

yarn add kevast-file

Using npm

npm install kevast-file

Usage

const { Kevast } = require('kevast');
const { KevastFile } = require('kevast-file');

(async () => {
  const kevast = new Kevast(new KevastFile('./test.json'));
  await kevast.set('key', 'value');
  assert(await kevast.get('key') === 'value');
})();