post-json

wrapper for posting json with hyperquest

Usage no npm install needed!

<script type="module">
  import postJson from 'https://cdn.skypack.dev/post-json';
</script>

README

post-json

wrapper for posting json with hyperquest

Build Status
NPM

install

npm install post-json

test

./bin/test

example

var postJson = require("post-json")

var url = "http://my-post-url.net/path"
var body = {my: "test", data: "fun"}

postJson(url, body, function (err, result) {
  // do stuff
})