
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
acm - another configuration module
is a configuration reader. it can retrieve
values from command line arguments, environment variables, and local files of
different formats.
just require
ing acm
will return an instantiated Configuration object that
uses some pretty standard defaults. this is a function you can use
to get your configuration. the funciton object will also have a .set
method
you can use to update values (in memory) and a .ref
property which is the
actual Configuration
instance. running config('github.username')
will
result in the following checks:
--github.username
command line argument will be checkedGITHUB_USERNAME
environment variable will be checkedgithub.{json,json5,yaml,yml,ini}
will be checked and parsed
for the valueacm
will make sensible decisions about where to check for configuration. for
example, when checking for:
process.argv
process.env
$PWD/config/
then $PWD
available extensions are: .ini
, .json
/.json5
, and .yaml
/.yml
.
parsers for each of these extensions are located in acm.prototype.parsers
.
adding new properties to this object will add support for addition file
extension. property values should be functions that take a string, parse it,
and return an object.
files can use merge fields. lodash's
template function is used to merge data into
string, and acm.prototype.fields
is passed as the data
argument. by default
.fields
comes with a reference to process
and process.env
(labeled as
env
)
FAQs
another configuraiton module
We found that acm 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
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.