
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
grunt-file-missing
Advanced tools
Check files and folders for existence.
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-file-missing --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-file-missing');
Run this task with the grunt fileMissing command.
Will fail if either or both are missing:
fileMissing: {
scripts: {
options{
files: ['a.js', 'b.js']
}
}
},
Will not fail, instead, if one or more files missing, will run missing callback function for each missing file, otherwise will run exists callback function for files array:
fileMissing: {
test_fixtures: {
options{
files: ['test/fixtures/*.txt'],
missing: function(file){ console.log(file, 'is missing!'); },
exists: function(files){ console.log('All these files exist:', files); }
}
}
},
FAQs
Check files for existence.
The npm package grunt-file-missing receives a total of 0 weekly downloads. As such, grunt-file-missing popularity was classified as not popular.
We found that grunt-file-missing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.