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

diskette

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diskette - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "diskette",
"version": "0.3.0",
"version": "0.3.1",
"description": "Stream buffers and strings efficiently in-memory",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Diskette
========
> Efficient and streamable in-memory file format.
> Diskette is a virtual file format that allows for fast reads and writes without reallocation. Files can be constructed from any buffer or string and they are fully streamable. As a consequence, any buffer or string can be streamed as if it was a regular file.
Read files and write files efficiently in-memory using this tiny API.
```javascript

@@ -17,2 +15,3 @@ let diskette = require('diskette')

file.append('i heard you like files\n')
file.write(4, 'dude')

@@ -26,3 +25,2 @@ let rest = new File('so i made files in memory that can be piped to just about anything\n')

file.append('hope you like it')
file.write(4, 'dude')

@@ -29,0 +27,0 @@ let s = new diskette.ReadableFileStream(file)

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