rs-store
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

rs-store

rs-store is a simple key-value store written in Rust rs-store.

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

📚 Read this template tutorial! 📚

This template is designed for compiling Rust libraries into WebAssembly and publishing the resulting package to NPM.

Be sure to check out other wasm-pack tutorials online for other templates and usages of wasm-pack.

🚴 Usage

🐑 Use npm install rs-store to use this package

npm install rs-store

🛠️ Use In Your Pages

import * as rsStore from 'rs-store';
const store = new rsStore.RsStore();

or

import { RsStore } from 'rs-store';
const store = new RsStore();

🚴‍ Apis

store.set('key', 'value'); // ()=> viod

store.get('key'); // ()=> value | undefined

store.remove('key'); // ()=> value | undefined

store.clear(); // ()=> void

store.keys(); // ()=> Array<string>

store.values(); // ()=> Array<any>

store.size(); // ()=> number

store.has('key'); // ()=> boolean

store.get_all(); // ()=> JSON

Readme

Keywords

none

Package Sidebar

Install

npm i rs-store

Weekly Downloads

3

Version

0.3.0

License

MIT/Apache-2.0

Unpacked Size

131 kB

Total Files

8

Last publish

Collaborators

  • cczhao990113