Skip to content

hit2hat/vk-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VK Storage

Wrapper for VK Connect for simply use storage

Install

yarn add vk-storage or npm i vk-storage --save

Examples

Quick start

import VKStorage from "vk-storage";
import connect from "@vkontakte/vkui-connect-promise";

VKStorage.init({ access_token: "<TOKEN>", connect }).catch(console.error);
VKStorage.subscribe(console.log);

Set value

VKStorage.set("field", "value");

Get value

VKStorage.get("field");

Subscribe for changes

VKStorage.subscribe((store) => {
    // your code
});

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published