dwmg

0.0.1 • Public • Published

dwmg - Dynamic Web Manifest Generator

Easy to use generator for Web Manifest with the ablity to export to JSON for use in Dynamic Manifest applications.

Install

npm install dwmg

Usage

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");

Coming Soon

  • Verification of manifest configuration

Web App Manifests

Based on the following spec https://developer.mozilla.org/en-US/docs/Web/Manifest

LICENSE

MIT

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i dwmg

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    28.8 kB

    Total Files

    11

    Last publish

    Collaborators

    • p0isonra1n