
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
config-cjson
Advanced tools
A small utility to load config files written in cjson (JSON with comments).
Inspiration: https://www.npmjs.com/package/oconf
const pathModule = require('path');
const loadConfig = require("config-cjson");
.
.
.
const config = await loadConfig(
pathModule.resolve(__dirname, "..", "config", "development.cjson")
);
./node_modules/.bin/config-cjson <config file path>
#include
- directive to include parent configs, path to included config can be relative(relative to the first config loaded) or absolute.
{
"#include": "common.cjson",
.
.
.
}
or
{
"#include": ["common.cjson", "production.cjson"],
.
.
.
}
#public
- directive to expose a property on a separate #public
attribute.
{
...
"title#public": "My App"
...
}
or
...
"lang#public": {
"defaultLocale": "en-US",
"supportedLocales: ["en-US", "es-ES"]
}
...
Below is not supported
# Not supported
"#public": {
"lang" : {
"defaultLocale": "en-US"
}
}
FAQs
Load cjson config files
We found that config-cjson 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.