Persistant file-based key=value storage adapter for @session.js/client
https://www.npmjs.com/package/@session.js/file-keyval-storage
| .vscode | ||
| src | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc | ||
| bun.lock | ||
| eslint.config.js | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
@session.js/file-keyval-storage
Simple persistant storage that stores everything in memory and periodically syncs it with locally stored file in key=value format. filePath is optional and defaults to ./storage.db
import { Session } from '@session.js/client'
import { FileKeyvalStorage } from '@session.js/file-keyval-storage'
new Session({
storage: new FileKeyvalStorage({
filePath: 'some-file-path.db'
})
})
Made for Session.js
Use Session messenger programmatically with Session.js: Session bots, custom Session clients, and more.
Donate
hloth.dev/donate · Tor: hlothdevzkti6suoksy7lcy7hmpxnr3msu5waokzaslsi2mnx5ouu4qd.onion/donate