Skip to content

hemanth/head-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 14, 2016
20ae92e · Jun 14, 2016

History

6 Commits
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
May 31, 2016
Jun 14, 2016
May 31, 2016
May 31, 2016

Repository files navigation

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

About

Easy interface for `head`

Resources

License

Stars

Watchers

Forks

Packages

No packages published