
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
A tiny module to read config parameters for your node application.
It's avaiable through npm:
npm install param
Param exposes a single function that finds a config parameter
// example.js
var param = require('param');
var port = param('app.port');
console.log(port);
The above example tells param to find the parameter app.port.
It does so by first looking at the command line arguments
node example.js --app.port 8080 # prints 8080
If present param will simply return that value.
Otherwise param will look for a configuration file called config.json or specified by --config [filename] or your NODE_ENV env var.
If NODE_ENV=development it will look for a config file called development.json and similar.
It will start looking for the config file in . and ./config. If it doesn't exist it will try in .. and ../config until it reaches /.
// config.json
{
"app": {
"port": 8888
}
}
Running the example again with the above file saved as ./config.json
node example.js # prints 8888
Happy configuring!
MIT
FAQs
param is a tiny module to read config parameters
The npm package param receives a total of 39 weekly downloads. As such, param popularity was classified as not popular.
We found that param 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.