Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@pwa/manifest
Advanced tools
Readme
Creating a Web Manifest for Progressive Web App with a variety of options
$ npm install --save @pwa/manifest
const pwaManifest = require('@pwa/manifest');
(async () => {
const manifest = await pwaManifest({
name: 'My PWApp',
short_name: 'My Short PWA Name',
start_url: '/index.html?homescreen=1',
display: 'standalone',
background_color: '#EFEFEF',
theme_color: '#FFEEFF'
})
// dump new generated manifest file if you want
await pwaManifest.write('./', manifest);
})();
or we support decamelizing from camelized properties
(async () => {
const manifest = await pwaManifest({
name: 'My PWApp',
shortName: 'My Short PWA Name',
startUrl: '/index.html?homescreen=1',
display: 'standalone',
backgroundColor: '#EFEFEF',
themeColor: '#FFEEFF'
});
})();
Type: object
Web Manifest properties you want to set. The name of options are same as member property of Web Manifest. Icons sizes are followed in lighthouse audits
{
"name": "My Powerful Progressive Web App",
"short_name": "PWApp",
"icons": [{
"src": "icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
}, {
"src": "icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}, {
"src": "icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}],
"start_url": "/index.html?homescreen=1",
"display": "standalone",
"background_color": "#FFFFFF",
"theme_color": "#3F51B5"
}
Returns a promise.
Write a manifest file as manifest.json
to dest path.
Returns a promise.
Read a manifest file in the name of manifest.json
to src path
MIT © Jimmy Moon
FAQs
Create a Web Manifest for Progressive Web App with a variety of options
The npm package @pwa/manifest receives a total of 161 weekly downloads. As such, @pwa/manifest popularity was classified as not popular.
We found that @pwa/manifest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.