Easy to use generator for Web Manifest with the ablity to export to JSON for use in Dynamic Manifest applications.
npm install dwmg
var manifest = new DWMG({
name: "name",
short_name: "short_name",
start_url: "start_url",
display: DWMG.displayTypes.standalone,
background_color: "#000000",
description: "description",
theme_color: "#FFFFFF",
orientation: DWMG.orientationTypes.natural,
categories: ["category1", "category2"]
});
manifest.addIcon("/image.png", "48x48");
manifest.addIcon("/image2.png", DWMG.iconSizes.x72, "image/png");
manifest.addShortcut("Shortcut1", "/url");
manifest.addShortcut("Shortcut2", "/url", "Description");
- Verification of manifest configuration
Based on the following spec https://developer.mozilla.org/en-US/docs/Web/Manifest