Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 11, 2024 via pnpm

file-entry-cache 6.0.1

Super simple cache for file metadata, useful for process that work o a given series of files and that only need to repeat the job on the changed ones since the previous run of the process
Package summary
Share
0
issues
2
licenses
9
ISC
8
MIT
Package created
2 Mar 2015
Version published
20 Feb 2021
Maintainers
1
Total deps
17
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
9 Packages, Including:
flatted@3.3.1
fs.realpath@1.0.0
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
once@1.4.0
rimraf@3.0.2
wrappy@1.0.2

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
file-entry-cache@6.0.1
flat-cache@3.2.0
json-buffer@3.0.1
keyv@4.5.4
path-is-absolute@1.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of file-entry-cache 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
flat-cache3.2.08.59 kBMIT
prod

Visualizations

Frequently Asked Questions

What does file-entry-cache do?

File-entry-cache is a supremely simple caching solution for file metadata that proves particularly useful in processes that work on a series of files. Its key functionality is to remember the state of files from the previous session, and consequently, only repeats tasks on the files that have changed. File-entry-cache works on the basis of in-memory cache and optional disk persistence, thereby providing a solution that improves speed and efficiency.

How do you use file-entry-cache?

To properly utilize file-entry-cache, you should first install the module using npm, with the following command:

npm i --save file-entry-cache

Once installed, the module makes available two functions, create and createFromFile. A small example using these functions may look like this:

var fileEntryCache = require('file-entry-cache');
var cache = fileEntryCache.create('testCache');
var files = expand('../fixtures/*.txt');
var oFiles = cache.getUpdatedFiles(files);
cache.reconcile();

In this instance, create is used to load the cache, preparing a new one if an existing one doesn't exist for the given Id. After that, you may persist the cache to the disk, for which you can use the reconcile function to update/check each file's status and some optional custom fields. getUpdatedFiles will return the files that were modified since the previous session of work.

Where are the file-entry-cache docs?

You'll find the most extensive documentation for file-entry-cache on its GitHub page: file-entry-cache. Additionally, you can find more information on the package on its npm page: file-entry-cache npm.