Skip to content

ajuvercr/data-sync.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-sync.js

A small js library that syncs object across runtimes.

Contents

  • FileDataSync

Stores objects as a file. Changing the inner state when the file is changed.

Usage:

async main() {
    const dataSync = create("file", "file.json"); 

    const item = await dataSync.get();

    const isFirstTime = !!item;

    await dataSync.set(42);
}

About

Ever had problems syncing data over processes and instances? Not anymore _blazingly_ fast!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors