
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ambassify/load-env
Advanced tools
Helper library to manage environment variables.
npm install --save @ambassify/load-env
Will throw an error when the environment variable is not set and no default is specified.
const load_env = require('@ambassify/load-env');
const NODE_ENV = load_env('NODE_ENV', 'production');
load_env(variableName, [defaultValue])
Create a load_env function that looks for prefixed environment variables and falls back to unprefixed version. If you do not provide a prefix, it will try to generate one using the closest package.json's name field.
const withPrefix = require('@ambassify/load-env/with-prefix');
const load_env = withPrefix();
// assuming package.json with: { "name": "@acme/foo-bar" }
// and: process.env.FOO_BAR_NODE_ENV = production
// and: process.env.NODE_ENV = staging
load_env('NODE_ENV');
// <-- "production"
If you have some issue or code you would like to add, feel free to open a Pull Request or Issue and we will look into it as soon as we can.
We are releasing this under a MIT License.
If you would like to know more about us, be sure to have a look at our website, or our Twitter accounts @Ambassify, Sitebase, JorgenEvens
FAQs
Helper for environment variables in node.
The npm package @ambassify/load-env receives a total of 90 weekly downloads. As such, @ambassify/load-env popularity was classified as not popular.
We found that @ambassify/load-env demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.