Home

Awesome

head-it Build Status

Easy interface for head

Install

$ npm install --save head-it

Usage

const headIt = require('head-it');

headIt('min').then(console.log).catch(console.error);

/*
Would print something like:
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Title</title>
*/

CLI

$ npm install --global head-it
$ head-it --help

  Easy interface for head.

  Usage
    $ head-it [type]

  Examples
    $ head-it min
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Page Title</title>

P.S: type can be any of: 360, min, elm, meta, link, fav, fbog, fbia, twitter, g+, oembed, ios, safari, android, chrome, ie, uc, qq, applinks.

GIF FTW!

License

MIT © Hemanth.HM