
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@loke/config
Advanced tools
Convention based configuration module using YAML for Node apps.
The configuration exposed will be created from the following paths (settings in paths higher on the list will override those lower on the list):
However, if the process has a --config [filename]
argument, then that file will be used instead.
The defaults.yml
file is required, and all configuration keys must have a value listed in the defaults.yml
.
Config files are defined using YAML. See http://yaml.org/
Example defaults.yml:
server:
hostname: www.myapp.com
port: 80
var config = require('loke-config').create('myapp');
var hostname = config.get('server.hostname');
var port = config.get('server.port');
console.log(hostname); // www.myapp.com
console.log(port); // 80
You can also override variables using environment variables.
Specify them in upper case, and replace .
with __
(double underscore).
eg:
SERVER__HOSTNAME=www.mynewapp.com npm start
FAQs
LOKE application configuration management
The npm package @loke/config receives a total of 154 weekly downloads. As such, @loke/config popularity was classified as not popular.
We found that @loke/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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.