
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Gulp plugin for adding social meta tags to your website
This Gulp plugin enables you to add meta tags to your website. Here is a simple example using gulp-seo
:
var gulpSeo = require('gulp-seo');
gulp.task('seo', function() {
return gulp.src('views/index.html')
.pipe(gulpSeo({
list: ['og', 'se', 'schema', 'twitter'],
meta: {
title: 'Title website',
description: 'Description website',
author: 'Maksym Blank',
keywords: ['website', 'with', 'meta', 'tags'],
robots: {
index: false, // true
follow: true // true
},
revisitAfter: '5 month', // 3 month
image: 'http://mywebsite.com/image.jpg',
site_name: 'My Website',
type: 'website'
}
}))
.pipe(gulp.dest('./views'));
});
gulpSeo([opts])
opts
(Object
): Options for adding Meta Tags.opts.list
(Array
): List of adding Meta Tags.opts.meta
(Object
): All desired Meta TagsYour website's title.
Type: string
Required: true
Example:
<title>My Website</title>
Your website's description.
Type: string
Required: true
Example:
<meta name="description" content="Description of this personal website..">
If your object is part of a larger web site, the name which should be displayed for the overall site.
Type: string
Required: false
Example:
<meta name="og:site_name" content="Personal website">
Your website's keywords.
Type: string
, array
Required: false
Example:
<meta name="keywods" content="my new website, awesome website">
Your website's author.
Type: string
Required: false
Example:
<meta name="author" content="John Smith">
Type: object
Required: false
Example:
<meta name="robots" content="noindex, follow">
Type: string
Required: false
Example:
<meta name="revisit-after" content="3 month">
Type: string
Required: false
Example:
<meta name="og:image" content="http://mywebsite.com/image.jpg">
Type: string
Required: false
Example:
<meta name="og:url" content="http://mywebsite.com/">
Type: string
Required: false
Example:
<meta name="og:type" content="website">
Type: string
Required: false
Example:
<meta name="contact" content="support@mywebsite.com">
Type: string
Required: false
Example:
<meta name="abstract" content="Small description of my website">
Type: string
Required: false
Example:
<meta name="copyright" content="name of owner">
Valid Values: general | mature | restricted | 14 years | safe for kids
Type: string
Required: false
Example:
<meta name="rating" content="14 years">
Type: string
Required: false
Example:
<meta name="webauthor" content="Maksym Blank">
Type: string
Required: false
Example:
<meta name="og:video" content="http://mywebsite.com/video">
Type: string
Required: false
Example:
<meta name="og:locale" content="en_Us">
Type: string
Required: false
Example:
<meta name="og:audio" content="http://mywebsite.com/audio">
FAQs
Adds social meta tags to your websites
The npm package gulp-seo receives a total of 6 weekly downloads. As such, gulp-seo popularity was classified as not popular.
We found that gulp-seo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.