Skip to main content
Module

x/steam_trader/mod.ts>CryptStorage

https://deno.land/x/steam_trader
Latest
class CryptStorage
Re-export
import { CryptStorage } from "https://deno.land/x/steam_trader@v0.4.0/mod.ts";

For using this class you need to give proper permissions to deno. It encrypts your data with this machine's id.

Automatically calls JSON.stringify on your data on save and JSON.parse on load.

on windows (not sure): --allow-env --allow-run --allow-read=%cd%\storage --allow-write=%cd%\storage

on linux: --allow-read=/var/lib/dbus/machine-id,/etc/machine-id --allow-read=$PWD/storage --allow-write=$PWD/storage

Static Methods

loadData(path: string): Promise<unknown>
saveData(path: string, data: unknown)