You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP →
Socket
Book a DemoSign in
Socket

@xylabs/storage

Package Overview
Dependencies
Maintainers
5
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/storage

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

latest
Source
npmnpm
Version
5.0.86
Version published
Weekly downloads
998
-82.16%
Maintainers
5
Weekly downloads
Ā 
Created
Source

@xylabs/storage

logo

main-build npm-badge npm-downloads-badge jsdelivr-badge npm-license-badge codacy-badge codeclimate-badge snyk-badge socket-badge

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

Reference

@xylabs/storage

Interfaces

InterfaceDescription
ReadonlyKeyValueStoreA readonly storage device.
KeyValueStoreA read/write storage device.

interfaces

KeyValueStore

@xylabs/storage

A read/write storage device.

Extends

Type Parameters

Type ParameterDefault type
TValue-
TKeystring

Methods

get()

get(key: TKey): Promisable<TValue | undefined>;

Returns a promise that resolves to the value for the given key.

Parameters

ParameterTypeDescription
keyTKeyThe key to get the value for.

Returns

Promisable<TValue | undefined>

Inherited from

ReadonlyKeyValueStore.get

keys()?

optional keys(): Promisable<TKey[]>;

The keys an array of keys.

Returns

Promisable<TKey[]>

Inherited from

ReadonlyKeyValueStore.keys

clear()?

optional clear(): Promisable<void>;

Removes all entries from the store.

Returns

Promisable<void>

delete()

delete(key: TKey): Promisable<void>;

Deletes the entry with the given key.

Parameters

ParameterTypeDescription
keyTKeyThe key of the entry to delete

Returns

Promisable<void>

set()

set(key: TKey, value: TValue): Promisable<void>;

Sets a value for the given key, creating or updating the entry.

Parameters

ParameterTypeDescription
keyTKeyThe key to set
valueTValueThe value to store

Returns

Promisable<void>

ReadonlyKeyValueStore

@xylabs/storage

A readonly storage device.

Extended by

Type Parameters

Type ParameterDefault type
TValue-
TKeystring

Methods

get()

get(key: TKey): Promisable<TValue | undefined>;

Returns a promise that resolves to the value for the given key.

Parameters

ParameterTypeDescription
keyTKeyThe key to get the value for.

Returns

Promisable<TValue | undefined>

keys()?

optional keys(): Promisable<TKey[]>;

The keys an array of keys.

Returns

Promisable<TKey[]>

Part of sdk-js

Maintainers

License

See the LICENSE file for license details

Credits

Made with šŸ”„ and ā„ļø by XYLabs

Keywords

hex

FAQs

Package last updated on 11 Mar 2026

Did you know?

Socket

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.

Install

Related posts