Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@37bytes/environment-info
Advanced tools
A set of utilities to enhance work with internal environments.
A set of utilities to enhance work with internal environments.
Run the following command to install the package:
npm install @37bytes/environment-info
A utility for retrieving information about the current application version and the current environment. When called, it returns a string.
It takes an object with the following fields as input:
Params | Type | Required | Description |
---|---|---|---|
stand | string | + | Stand name |
version | string | - | Current Application Version |
commitHash | string | - | Current Commit |
branch | string | - | Current Branch |
isProduction | boolean | - | Production Environment Indicator |
If isProduction = true
, the response will be in the form of:
${version}
,
otherwise, the utility will return a string in the form of:
${version}|${stand}; ${branch}#${commitHash}
Important: When determining whether it's a production environment, we use a list of internal environments, not a list of production environments.
const isProductionEnvironment = (envName: string) => {
if (import.meta.env.DEV) {
return false;
}
if (['test', 'stage'].includes(envName)) {
return false;
}
return true;
}
A utility for adding the stand name to the title of the browser tab.
It takes one argument: standName: string
###Version History
1.0.2
1.0.1
FAQs
A set of utilities to enhance work with internal environments.
We found that @37bytes/environment-info demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.