
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@xylabs/storage
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Using npm:
npm install {{name}}
Using yarn:
yarn add {{name}}
Using pnpm:
pnpm add {{name}}
Using bun:
bun add {{name}}
See the LICENSE file for license rights and limitations (LGPL-3.0-only).
### .temp-typedoc
### interfaces
### <a id="KeyValueStore"></a>KeyValueStore
A read/write storage device.
ReadonlyKeyValueStore<TValue, TKey>TValue
TKey = string
get(key): Promisable<TValue | undefined>;
Returns a promise that resolves to the value for the given key.
TKey
The key to get the value for.
Promisable<TValue | undefined>
optional keys(): Promisable<TKey[]>;
The keys an array of keys.
Promisable<TKey[]>
optional clear(): Promisable<void>;
Removes all entries from the store.
Promisable<void>
delete(key): Promisable<void>;
Deletes the entry with the given key.
TKey
The key of the entry to delete
Promisable<void>
set(key, value): Promisable<void>;
Sets a value for the given key, creating or updating the entry.
TKey
The key to set
TValue
The value to store
Promisable<void>
### <a id="ReadonlyKeyValueStore"></a>ReadonlyKeyValueStore
A readonly storage device.
TValue
TKey = string
get(key): Promisable<TValue | undefined>;
Returns a promise that resolves to the value for the given key.
TKey
The key to get the value for.
Promisable<TValue | undefined>
optional keys(): Promisable<TKey[]>;
The keys an array of keys.
Promisable<TKey[]>
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
The npm package @xylabs/storage receives a total of 7,423 weekly downloads. As such, @xylabs/storage popularity was classified as popular.
We found that @xylabs/storage demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.