Socket
Book a DemoInstallSign in
Socket

@trusk/array-to-disk

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trusk/array-to-disk

- save an array to disk using the localstorage API - restores the array state if initialized on an existing storage - ⚠️ this only works for push and shift operations - ⚠️ you should not be using multiple array instances on the same storage

latest
npmnpm
Version
1.1.0
Version published
Maintainers
5
Created
Source

array-to-disk

  • save an array to disk using the localstorage API
  • restores the array state if initialized on an existing storage
  • ⚠️ this only works for push and shift operations
  • ⚠️ you should not be using multiple array instances on the same storage
const array = new DiskArray("/storage/location/path", size);

Usecase

  • persist a pending list of amqp messages on disk in case of unexpected crash/reboot of a service while the amqp channel is not available (see amqp connection manager).

FAQs

Package last updated on 12 Aug 2019

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