Skip to content

hemanth/head-it

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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