![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
mem-fs
Advanced tools
Readme
Simple in-memory vinyl file store.
You access a file using store#get()
method. If the file is in memory, it will be used. Otherwise, we'll load the file from the file-system.
var store = require('mem-fs').create();
store.get('/test/file.txt');
When trying to load a file we cannot read from disk, an empty Vinyl file will be returned. The contents
of this file will be set to null
.
Trying to get a directory or any invalid files will also return an empty Vinyl file pointer.
You update file references by using store#add()
method. This method take a vinyl
file object as parameter.
var File = require('vinyl');
var store = require('mem-fs').create();
var coffeeFile = new File({
cwd: '/',
base: '/test/',
path: '/test/file.coffee',
contents: new Buffer('test = 123')
});
store.add(coffeeFile);
Using store#each(cb(file, index))
, you can iterate over every file stored in the file system.
FAQs
Simple in-memory vinyl file store
The npm package mem-fs receives a total of 832,820 weekly downloads. As such, mem-fs popularity was classified as popular.
We found that mem-fs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.