
Research
Security News
Malicious npm Package Wipes Codebases with Remote Trigger
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
A simple template processor that replaces environment variables in files.
SITE_NAME="Site name" KEYWORDS="keyword1 keyword2" OTHER_VARIABLE="3123" npx envtemplate config.toml.template config.toml
The package will replace all occurrences of ${VARIABLE_NAME}
in the template file with the corresponding environment variable value.
Template file (config.toml.template
):
site_name = "${SITE_NAME}"
keywords = "${KEYWORDS}"
other_variable = "${OTHER_VARIABLE}"
After running the command, the output file (config.toml
) will contain:
site_name = "Site name"
keywords = "keyword1 keyword2"
other_variable = "3123"
ISC
FAQs
A simple template processor that replaces environment variables in files with support for arrays, default values, and special date variables
The npm package envtemp receives a total of 11 weekly downloads. As such, envtemp popularity was classified as not popular.
We found that envtemp demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.
Security News
New CNA status enables OpenJS Foundation to assign CVEs for security vulnerabilities in projects like ESLint, Fastify, Electron, and others, while leaving disclosure responsibility with individual maintainers.