目录

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

关于
44.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号