Firefox App Validator: Icons
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