json-post
How to post JSON in NodeJS.
You know those simplest things ever not properly documented online? That!
const jsonPOST = require('json-post');
// or import jsonPOST from 'json-post'
jsonPOST(
'https://whatever:5000/seriously',
{hello: 'world'}
// optionally extra headers as third argument
// {...}
).then(
console.info,
console.error
);
That's literally it.