Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digidem/atomic-fs-blob-store

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

@digidem/atomic-fs-blob-store

blob store that stores blobs on the local file system (like fs-blob-store but atomic)

  • 5.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
5
Weekly downloads
 
Created
Source

atomic-fs-blob-store

Build Status

blob-store-compatible

blob store that atomically stores blobs (e.g. no partial writes) on the local file system.

Forked from fs-blob-store

npm install atomic-fs-blob-store

Usage

var fs = require('atomic-fs-blob-store')
var blobs = fs('some-directory')

var ws = blobs.createWriteStream({
  key: 'some/path/file.txt'
})

ws.write('hello world\n')
ws.end(function() {
  var rs = blobs.createReadStream({
    key: 'some/path/file.txt'
  })

  rs.pipe(process.stdout)
})

Atomicity

The original fs-blob-store doesn't make atomic writes which may lead to partially written files when an error occurs or if the process crashes.

atomic-fs-blob-store guarantees write atomicity, which means that if your process crashes in the middle of a write, the file won't be written at all.

Which mean that a key only starts to exist and becomes available for reading once a write is fully completed.

License

MIT

Keywords

FAQs

Package last updated on 07 Jun 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