2.0.1 • Published 10 years ago

firefox-app-validator-icons v2.0.1

Weekly downloads
2
License
MPL-2.0
Repository
github
Last release
10 years ago

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