Easy interface for `head`
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
cli.js
head-it.gif
head.js
index.js
license
package.json
readme.md
test.js

readme.md

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