Nobody Pays (for) Magazines

    firefox-app-validator-icons

    2.0.1 • Public • Published

    Firefox App Validator: Icons

    Build Status

    Current image support

    png, jpg/jpeg

    Usage

    This is just to validate file-specific rules for the icons provided in a Firefox OS manifest.

    var fs = require('fs');
    var ManifestIcon = require('firefox-app-validator-icons');
    
    var icons = new ManifestIcon();
    
    var results = icons(fs.readFileSync('/path/to/icon.png');
    console.log(results);
    

    If there are any errors, you can access them in results.errors and warnings in results.warnings

    Tests

    # To run tests once
    npm test
    
    # To run tests continually on file change
    npm run-script testwatch
    

    License

    Mozilla Public License Version 2.0

    Install

    npm i firefox-app-validator-icons

    DownloadsWeekly Downloads

    4

    Version

    2.0.1

    License

    MPL-2.0

    Last publish

    Collaborators

    • ednapiranha