Comparing version
{ | ||
"name": "webpage", | ||
"version": "0.0.1", | ||
"description": "webpage boilerplate module", | ||
"version": "0.1.0", | ||
"description": "Webpage Boilerplate Component", | ||
"main": "SOURCE/index.js", | ||
@@ -14,4 +14,8 @@ "scripts": { | ||
], | ||
"author": "serapath <dev@serapath.de> (http://www.github.com/serapath)", | ||
"author": { | ||
"name": "serapath", | ||
"email": "dev@serapath.de", | ||
"url": "http://www.github.com/serapath" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -1,1 +0,79 @@ | ||
module.exports = '<html></html>' | ||
/****************************************************************************** | ||
DEPENDENCIES | ||
******************************************************************************/ | ||
var _config = require('_config'); | ||
/****************************************************************************** | ||
PARAMETER = ARGUMENT | ||
******************************************************************************/ | ||
// no cli tool | ||
/****************************************************************************** | ||
EXPORT | ||
******************************************************************************/ | ||
module.exports = boilerplate; | ||
/****************************************************************************** | ||
EXECUTION | ||
******************************************************************************/ | ||
var config = _config(); | ||
function boilerplate (parameter) { | ||
var $title = config['title']; | ||
var $description = config['description']; | ||
var $keywords = config['keywords']; | ||
var $author = config['author']; | ||
var $website = config['website']; | ||
if (parameter) { | ||
$title = parameter.title || $title; | ||
$description = parameter.description || $description; | ||
$keywords = parameter.keywords || $keywords; | ||
$author = parameter.author || $author; | ||
$website = parameter.website || $website; | ||
} | ||
var title = ['<title>'+$title+'</title>']; | ||
var meta = [ | ||
'<meta charset="utf-8">', | ||
'<meta name="format-detection" content="telephone=no" />', | ||
'<meta name="msapplication-tap-highlight" content="no" />', | ||
'<meta name="description" content="'+$description+'">', | ||
'<meta name="keywords" content="'+$keywords+'">', | ||
'<meta name="author" content="'+$author+'">', | ||
'<meta name="viewport" content="width=device-width, initial-scale = 1.0, user-scalable=no">' | ||
]; | ||
var og = [ | ||
'<meta property="og:title" content="'+$title+'" />', | ||
'<meta property="og:site_name" content="'+$title+'" />', | ||
'<meta property="og:url" content="'+$website+'" />', | ||
'<meta property="og:description" content="'+$description+'" />', | ||
'<meta property="og:image" content="pic/issuing_an_asset.gif" />', | ||
]; | ||
var icon = [ // check item generator | ||
'<link rel="apple-touch-icon" sizes="57x57" href="logo/favicon/apple-touch-icon-57x57.png">', | ||
'<link rel="apple-touch-icon" sizes="60x60" href="logo/favicon/apple-touch-icon-60x60.png">', | ||
'<link rel="apple-touch-icon" sizes="72x72" href="logo/favicon/apple-touch-icon-72x72.png">', | ||
'<link rel="apple-touch-icon" sizes="76x76" href="logo/favicon/apple-touch-icon-76x76.png">', | ||
'<link rel="apple-touch-icon" sizes="114x114" href="logo/favicon/apple-touch-icon-114x114.png">', | ||
'<link rel="apple-touch-icon" sizes="120x120" href="logo/favicon/apple-touch-icon-120x120.png">', | ||
'<link rel="apple-touch-icon" sizes="144x144" href="logo/favicon/apple-touch-icon-144x144.png">', | ||
'<link rel="icon" type="image/png" href="logo/favicon/favicon-32x32.png" sizes="32x32">', | ||
'<link rel="icon" type="image/png" href="logo/favicon/favicon-96x96.png" sizes="96x96">', | ||
'<link rel="icon" type="image/png" href="logo/favicon/favicon-16x16.png" sizes="16x16">', | ||
'<link rel="manifest" href="logo/favicon/manifest.json">', | ||
'<meta name="msapplication-TileColor" content="#b91d47">', | ||
'<meta name="msapplication-TileImage" content="logo/favicon/mstile-144x144.png">', | ||
'<meta name="theme-color" content="#ffffff">', | ||
'<link rel="shortcut icon" type="image/x-icon" href="SOURCE/favicon.ico">', | ||
'<link rel="icon" type="image/png" href="SOURCE/reinventingengagement.png">' | ||
]; | ||
var style = [ | ||
// '<link rel="stylesheet" type="text/css" href="'+$style+'" />' | ||
'<link rel="stylesheet" type="text/css" href="bundle.css" />' | ||
]; | ||
var head = title.concat(meta)/*.concat(og).concat(icon)*/.concat(style); | ||
var htmlTag = document.querySelector('html'); | ||
var headTag = document.querySelector('head'); | ||
htmlTag.setAttribute('lang','en'); | ||
headTag.innerHTML = head.join(''); | ||
return document.querySelector('body'); | ||
}; |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7671
1822.56%6
200%101
10000%1
-50%15
Infinity%0
-100%