
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.
env-file-rw
Advanced tools
Edit and read from .env files
const EnvFileWriter = require("env-file-rw");
const envFileWriter = new EnvFileWriter("test.env");
envFileWriter.get("HELLO","NOT WORLD");// NOT WORLD BY DEFAULT
envFileWriter.set("HELLO","WORLD");
// note : unsaved changes are not readable with .get()
// persists the changes
envFileWriter.saveSync();
const EnvFileWriter = require("env-file-rw");
const envFileWriter = new EnvFileWriter("test.env",false); // false prevents direct sync parsing
// open the file and parse it
await envFileWriter.parse();
envFileWriter.get("HELLO","NOT WORLD");// NOT WORLD BY DEFAULT
envFileWriter.set("HELLO","WORLD");
// note : unsaved changes are not readable with .get()
// persists the changes
await envFileWriter.save();
import EnvFileWriter from "env-file-rw";
const envFileWriter = new EnvFileWriter< { HELLO : any} >("test.env",false); // you can specify the structure of the env file for the get()
// open the file and parse it
await envFileWriter.parse();
envFileWriter.get("HELLO","NOT WORLD");// NOT WORLD BY DEFAULT
envFileWriter.set("HELLO","WORLD");
// note : unsaved changes are not readable with .get()
// persists the changes
await envFileWriter.save();
FAQs
Read and write from .env file
The npm package env-file-rw receives a total of 164 weekly downloads. As such, env-file-rw popularity was classified as not popular.
We found that env-file-rw 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.
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.