nanopost

Simple, promise based, dependency free POST only request library

Usage no npm install needed!

<script type="module">
  import nanopost from 'https://cdn.skypack.dev/nanopost';
</script>

README

A Simple, promise based, dependency free POST only request library

micropost(url[,options])

micropost's parameters are the same as http.request's parameters, without the callback

const micropost = require('micropost');

micropost('https://www.example.com/example', options)({foo:'bar'}).then(response => {
  console.log(response.body);
});