
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@carnesen/bitcoin-config-cli
Advanced tools
A Node.js command-line interface (CLI) for bitcoin server software configuration
A Node.js command-line interface (CLI) for bitcoin server software configuration
npm install --global @carnesen/bitcoin-config-cli
^^ This installs this package to your global node_modules area. Probably you can now invoke this CLI from anywhere using the command bitcoin-config. If not you'll need modify your PATH.
By default this CLI reads/writes the default bitcoin configuration file location, e.g. ~/.bitcoin/bitcoin.conf on Linux.
The CLI can take a JSON-serialized configuration object and write it as an INI-serialized string as expected by the bitcoin server software:
$ bitcoin-config write --json '{"regtest": true, "daemon": true}'
Let's check the contents of the configuration file:
$ bitcoin-config read --format ini
# This is a bitcoin configuration file written using @carnesen/bitcoin-config
# Run this node on its own independent test network.
regtest=1
# Spawn bitcoin as a background process
daemon=1
Looks good! Now suppose later we want to update a configuration file with a specific value:
$ bitcoin-config set --acceptnonstdtxn 1
The "set" command preserves existing values and adds the one(s) specified:
$ bitcoin-config read
{ regtest: true, daemon: true, acceptnonstdtxn: true }
By now there are a TON of available bitcoin configuration options:
$ bitcoin-config set --help
Usage: bitcoin-config set <options>
Options:
[--acceptnonstdtxn <str>] : Relay and mine non-standard transactions
Allowed values {'0', '1'}
[--addresstype <str>] : p2sh-segwit, legacy, or bech32
[--addnode <str0> [...]] : Add a node IP address to attempt to connect to
[--addrmantest <str>] : allows you to test address relay locally
Allowed values {'0', '1'}
[--alertnotify <str>] : Execute a command when an alert or long fork is received.
"%s" in the command string is replaced by the alert message.
...
In addition to providing a CLI, this npm package can also be used as a library in conjunction with @carnesen/cli:
import { bitcoinConfig } from '@carnesen/bitcoin-config-cli';
import { branch, cli } from '@carnesen/cli';
export const root = branch({
commandName: 'awesome',
subcommands: [bitcoinConfig],
})
if (module === require.main) {
cli(root)();
}
MIT © Chris Arnesen
FAQs
A Node.js command-line interface (CLI) for bitcoin server software configuration
We found that @carnesen/bitcoin-config-cli 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.