Comparing version 2.0.0 to 2.1.0
@@ -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}); |
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3567
63
57
0