Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Simple app-wide configuration. Based on a simply and pre-defined pattern files are read and merged into the configuration object, which is exposed directly from the module.
No need to configure deling
before it works - simple import
your deling
(the Danish word for 'sharing' and for the military unit 'platoon').
npm install --save deling
You don't need to configure deling
, but you have to configure your app - and that's what we are going to do.
deling
will look in the root of your project (by traverse module.parent) for config files, either in a directory named config
or directly in the root. If the directory config
exists deling
will NOT be looking in the root for config files.
The content of each file will be merged into the config object, overwriting existing values for everything other than nested objects which will be deep merged.
# order of files in ./config
./config/default.{js,json}
./config/{NODE_ENV}.{js,json}
./config/local.{js,json}
# order of files ./
./config.{js,json}
./config.{NODE_ENV}.{js,json}
./config.local.{js,json}
deling
automatically adds some data about your project before merging in content from you config files.
{
root: '/absolute/path/to/your/application',
env: process.env.NODE_ENV || 'development',
name: pkgJson.name || '',
version: pkgJson.version || ''
}
var config = require('deling');
or the ES6 way import config from 'deling';
config
is a reference to your combined config based on your current environment.
That's it... sorry if you hoped for more work - but deling
is all about making configuration consitent and easy through out your application.
FAQs
Simple environment configuration for node
The npm package deling receives a total of 0 weekly downloads. As such, deling popularity was classified as not popular.
We found that deling 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.