Honestly? For how to send data to api in javascript node, just use `axios`. It’s got:
- Promise support
- Auto JSON parsing
- Timeout settings
- Interceptors (for auth, logging, etc.)
```javascript
axios.post('/api', { data }, { timeout: 5000 })
.then(...)
.catch(...);
```
Why make life harder?
- Promise support
- Auto JSON parsing
- Timeout settings
- Interceptors (for auth, logging, etc.)
```javascript
axios.post('/api', { data }, { timeout: 5000 })
.then(...)
.catch(...);
```
Why make life harder?
