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

mem-fs

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mem-fs - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

index.js

@@ -60,2 +60,6 @@ 'use strict';

Store.prototype.all = function () {
return Object.values(store);
};
Store.prototype.stream = function () {

@@ -62,0 +66,0 @@ const stream = new PassThrough({objectMode: true, autoDestroy: true});

2

package.json
{
"name": "mem-fs",
"version": "2.0.0",
"version": "2.1.0",
"description": "Simple in-memory vinyl file store",

@@ -5,0 +5,0 @@ "scripts": {

@@ -45,1 +45,13 @@ mem-fs

Using `store#each(cb(file, index))`, you can iterate over every file stored in the file system.
### Get all files
Using `store#all()`, you can get every file stored in the file system.
### Check existence in the file system
Using `store#existsInMemory()`, you can check if the file already exists in the file system without loading it from disk.
### Stream every file stored in the file system
Using `store#stream()`, you can create a stream with every file stored in the file system.
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