head2deprecated

Zero dependency HTTP HEAD module

Usage no npm install needed!

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

README

head Build Status js-standard-style

Zero dependency HTTP HEAD module

Usage

Install:

Use yarn or npm:

$ npm install --save head2

Example:

Requires Promise support.

const head = require('head2')

head('https://www.google.pt')
  .then((headers) => {
    // do something with headers object
  })
  .catch(console.error)