
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
check-mate
Advanced tools
Your mate to check files or modules exist in your project
Note: WIP, pretty messy codebase...
$ npm install --global check-mate
Usage
$ check-mate
// Run on a project folder
Examples
$ check-mate
// Will check the default files exist
https://github.com/gtrufitt/check-mate
Add a function to lib/checkers.js
that returns a Promise and resolves with a chalk
ified string.
E.g:
checkFileExists: ({humanName, fileName, checker}) => {
return new Promise(function(resolve, reject) {
const checkFile = (fileName) =>
(fs.existsSync(fileName)) ? chalk.green(`Yes, ${fileName} exists`) : chalk.red(`No, ${fileName} doesn't exist`);
(typeof fileName === 'string') ? resolve(checkFile(fileName)) : resolve(fileName.map(checkFile).join(endOfLine));
});
You can then use this in the lib/mates.js
file, by adding an object, with your new function in the checkers array:
{humanName: 'Riff Raff', fileName: ['riff-raff.yaml', 'deploy.json'], checkers: [checkFileExists]}
As above, you can add mates in the lib/mates.js
. Mates should have a humanName
that'll be used in the check title (Checks for *Linting*
) and then some 'checker' specific properties (checkers use destructuring to grab the ones they want).
npm i -g np
then
np <versionType>
MIT © Gareth Trufitt
FAQs
Your mate to check files or modules exist in your project
The npm package check-mate receives a total of 2 weekly downloads. As such, check-mate popularity was classified as not popular.
We found that check-mate 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.