
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
modreal-config
Advanced tools
This is an opinionated simple configuration package. It assumes:
Add to your package as a dependency:
"dependencies": {
"modreal-config": "modreal/config"
}
Install it:
$ npm install
Require it:
// javascript
var config = require("modreal-config");
# coffeescript
config = require 'modreal-config'
Access your configuraiton:
console.log(config.facebook)
See the next section for where to put your config json.
The config folder must be in the same directory or a parent directory of your main script file. Here are some examples of working folder setups:
+ package.json
- config
+ main.js
+ package.json
- config
- lib
+ main.js
+ package.json
- lib
- config
+ main.js
mongo.json
{
"production": "mongodb://alweof8a:893fhalw8efla389fhaw9efgaw@82.154.4.14:1472/app_production",
"staging": "mongodb://alweof8a:893fhalw8efla389fhaw9efgaw@82.154.4.14:1472/app_staging",
"development": "mongodb://localhost:27017/app_development",
"test": "mongodb://localhost:27017/app_test"
}
Would then be available at:
console.log(process.env.NODE_ENV)
// development
config = require('modreal-config')
console.log(config.mongo)
// mongodb://localhost:27017/app_development
MIT
AJ Ostrow, November 2013
FAQs
This is an opinionated simple configuration package. It assumes:
We found that modreal-config 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.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.