Product
Introducing Socket Optimize
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
@anolilab/rc
Advanced tools
This module provides a utility function to load rc configuration settings from various sources, including environment variables, default values, and configuration files located in multiple standard directories. It merges these settings into a single configuration object.
Daniel Bannert's open source work is supported by the community on GitHub Sponsors
npm install @anolilab/rc
yarn add @anolilab/rc
pnpm add @anolilab/rc
The main function provided by this module is rc. It allows you to load configuration settings for your application from different sources.
import { rc } from "@anolilab/rc";
const { config, files } = rc("npm");
// returns a merged config object with all found npmrc files and a files list what files where found.
Given your application name (appname), rc will look in all the obvious places for configuration.
/etc/${appname}/config
/etc/${appname}rc
$HOME/.config/${appname}/config
$HOME/.config/${appname}
$HOME/.${appname}/config
$HOME/.${appname}rc
.${appname}/config
and .${appname}rc
and all found looking in ../../../ ../../ ../ ./
etc.${appname}_config
then from that file${appname}_
or use "__" to indicate nested properties appname_foo__bar__baz
=> foo.bar.baz
)All configuration sources that were found will be flattened into one object, in this exact order.
Libraries in this ecosystem make the best effort to track Node.js’ release schedule. Here’s a post on why we think this is important.
If you would like to help take a look at the list of issues and check our Contributing guidelines.
Note: please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
The anolilab rc is open-sourced software licensed under the MIT
FAQs
The runtime configuration loader.
The npm package @anolilab/rc receives a total of 645 weekly downloads. As such, @anolilab/rc popularity was classified as not popular.
We found that @anolilab/rc demonstrated a healthy version release cadence and project activity because the last version was released less than 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
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.
Product
We're excited to announce that Socket now supports the Java programming language.
Security News
Socket detected a malicious Python package impersonating a popular browser cookie library to steal passwords, screenshots, webcam images, and Discord tokens.