New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

easy-head

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-head

Utility library for commonly used meta tags

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

easy-head

Utility library for commonly used meta tags

Installation

npm install --save easy-head

Usage

import { descriptionTags, imageTags, titleTags } from 'easy-head';
import { Helmet } from 'react-helmet';

// Use in your React Helmet component

export default (props) => (
  <Helmet>
    
    /*
    Title Tags
    
    Generates the below tags:
    <title key='title'>{title}</title>
    <meta key='schema' itemProp="name" content={title}/>
    <meta key='meta-title' name='title' content={title}/>
    <meta key='og:title' property='og:title' content={title}/>
    <meta key='twitter:title' name="twitter:title" content={title}/>
    */
    
    {titleTags('Title String')}
    
    
    /*
    Description Tags
    
    Generates the below tags:
    <meta key='description' name='description' content={description}/>
    <meta key='schema-description' itemProp="description" content={description}/>
    <meta key='og:description' property='og:description' content={description}/>
    <meta key='twitter:description' name="twitter:description" content={description}/>
    */
    
    {descriptionTags('Description String')}
    
    
    /*
    Image Tags
    
    Generates the below tags:
    <meta key='schema-image' itemProp="image" content={image}/>
    <meta key='og:image' property="og:image" content={image}/>
    <meta key='twitter:image' name="twitter:image" content={image}/>
    <meta key='twitter:card' name="twitter:card" content="summary_large_image"/>
    */
    
    {imageTags('https://via.placeholder.com/150.jpg')}
    
    
  </Helmet>
)

Keywords

react

FAQs

Package last updated on 15 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts