New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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

  • 1.1.0
  • latest
  • npm
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc