It is a library that allows you to interact with the json-rpc part of a bitcoin client (regardless of the coin) A simple initialization with the client's rpc identifier and you will be able to recover all the information from bitcoin-cli
npm i bitcoin-client-rpc
const bitcoinRpc = require('bitcoin-client-rpc');
const bitCoin = new bitcoinRpc('localhost', '9888', 'rpcUsername', 'rpcPass');
bitCoin.call('getinfo', [], function (err, resB) {
if (err !== null) {
console.log('Bitcoin RPC error: ' + err )
} else {
console.log(resB.result)
}
})