Monchest
is a data store engine for web browser. It supports unlimited data store for string, object, and binary(blob) data regardless of the per-item size limit.
~$ yarn add monchest
or
~$ npm install monchest
const monchest = new Monchest({
// data storage name
name: 'samplestorage',
// data storage type (optional, default=Memory)
storage: MonchestStorageType.Memory,
// encryption algorithm (optional, default is no encryption)
encryptionPolicy: {
encrypt: (data: object) => {
// SHOULD RETURN ENCRYPTED STRING
},
decrypt: (encrypted: string) => {
// SHOULD RETURN DECRYPTED OBJECT
},
}
})
// save data. data type could be string | object | blob
await monchest.save(key, data)
// load data.
const data = await monchest.load(key)
// remove data.
await monchest.remove(key)
Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.