
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-magic
Advanced tools
Manage your app's status with a file.
CheckMagic( [options] )
options
is an optional object that can contain:
{
"offline": "maintenance",
"online": "production",
"path": "./check.txt",
"leave": false,
"startOffline": false
}
offline
:The string that will be written to check.txt when your app is offline. Defaults to maintenance
online
:The string that will be written to check.txt when your app is online. Defaults to production
path
:The path to check.txt. Defaults to ./check.txt
leave
:If leave is not set to true, CheckMagic will remove check.txt when the process exits. Defaults to false
startOffline
:If startOffline is not set to true, you will need to call goOnline
to indicate your server is online. Defaults to false
getStatus()
Returns the contents of check.txt as a string. If check.txt is inaccessible it will return your offline string.
goOffline()
Writes your offline string to check.txt
goOnline()
Writes your online string to check.txt
v0.1.0
FAQs
Manage your check.txt file with magic!
The npm package check-magic receives a total of 5 weekly downloads. As such, check-magic popularity was classified as not popular.
We found that check-magic 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.