Installations
npm install manup
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
6.5.0
NPM Version
3.10.6
Score
67
Supply Chain
86.1
Quality
75.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
ahoereth
Download Statistics
Total Downloads
6,564
Last Day
2
Last Week
4
Last Month
15
Last Year
428
GitHub Statistics
7 Commits
3 Watching
1 Branches
1 Contributors
Bundle Size
2.14 kB
Minified
586.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.1
Package Id
manup@1.0.1
Size
5.89 kB
NPM Version
3.10.6
Node Version
6.5.0
Total Downloads
Cumulative downloads
Total Downloads
6,564
Last day
0%
2
Compared to previous day
Last week
-20%
4
Compared to previous week
Last month
400%
15
Compared to previous month
Last year
-77.4%
428
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
ManUp.js
Provides the function manup()
which given a Web App Manifest object generates according meta
and link
tags for older browsers. Output is an array of arrays of which the first value is the tag (meta
or link
) and the second value is the object of attribute/value pairs.
Install
npm i manup
Usage
import manup from 'manup';
const manifest = JSON.parse(fs.readFileSync('./manifest.json', 'utf8'));
const headElements = manup(manifest);
Example manifest.json
:
{
"short_name": "ManUp.js",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "/",
"display": "standalone",
"theme_color": "#f44336"
}
Example output headElements
array:
[
[ 'meta', { name: 'theme-color', content: '#f44336' } ],
[ 'meta', { name: 'mobile-web-app-capable', content: 'yes' } ],
[ 'meta', { name: 'apple-mobile-web-app-capable', content: 'yes' } ],
[ 'meta', { name: 'apple-mobile-web-app-title', content: 'ManUp.js' } ],
[ 'meta', { name: 'application-name', content: 'ManUp.js' } ],
[ 'meta', { name: 'msapplication-navbutton-color', content: '#f44336' } ],
[ 'link', { rel: 'icon', sizes: '192x192', href: '/icon-192.png' } ]
]
Browsers will choose whether to use the manifest.json
or the tags.
Usage with React
const Html = ({ headElements }) => (
<html lang='en-EN'>
<head>
<title>ManUp.js</title>
<link rel='manifest' href='/manifet.json' />
{headElements.map(([tag, props], idx) =>
React.createElement(tag, { ...props, key: idx })
)}
</head>
<body>
<div id='app' />
</body>
</html>
);
Props
The foundation for this comes from https://github.com/boyofgreen/ManUp.js -- thanks! The code was simplified and rewritten as a node module and some more supported tags added.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More