
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
meshblu-config
Advanced tools
Meshblu Config from environment or JSON file
npm install meshblu-config
var MeshbluConfig = require('meshblu-config');
var meshbluConfig = new MeshbluConfig();
var config = meshbluConfig.generate({});
var Meshblu = require('meshblu');
var meshblu = Meshblu.createConnection(config);
| Parameter | Type | Required | Description |
|---|---|---|---|
| options | object | no | can contain any of these keys: envVars, defaultFilename, env |
var meshbluConfig = new MeshbluConfig({envVars: {uuid: "MESHBLU_UUID", resolveSrv: "MESHBLU_RESOLVE_SRV"}})
var meshbluConfig = new MeshbluConfig({defaultFilename: './something-like-meshblu.json'})
var meshbluConfig = new MeshbluConfig({env: {"MESHBLU_UUID": "the-uuid"}})
Parse the default file, environment, and data and return the combined configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | object | no | Data to process |
var data = meshbluConfig.generate()
Returns the current config
| Parameter | Type | Required | Description |
|---|
var data = meshbluConfig.get();
Loads any values from the JSON file into the config
| Parameter | Type | Required | Description |
|---|---|---|---|
| filename | string | no | JSON file to parse, defaults to ``./meshblu.json` |
meshbluConfig.fromFile('./filename.json')
var data = meshbluConfig.get();
Loads any values from the env
| Parameter | Type | Required | Description |
|---|---|---|---|
| env | object | no | Environment to use, defaults to process.env |
meshbluConfig.fromEnv({"MESHBLU_UUID": "the-uuid"})
var data = meshbluConfig.get();
Loads any values from the env
| Parameter | Type | Required | Description |
|---|---|---|---|
| data | object | yes | Data to use |
meshbluConfig.fromData({uuid: "the-uuid"})
var data = meshbluConfig.get();
FAQs
Meshblu Config from environment or JSON file
The npm package meshblu-config receives a total of 94 weekly downloads. As such, meshblu-config popularity was classified as not popular.
We found that meshblu-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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.