3.1.1 • Published 9 years ago

webapp-validator-central v3.1.1

Weekly downloads
3
License
BSD
Repository
github
Last release
9 years ago

Firefox App Validator (central module)

This node module runs both the manifest and icon validation rules. Expects the webapp manifest to be in a development environement, so paths are by default interpreted as being relative to the manifest's location.

Configuration setup

If you are using a custom 'fs' or 'url' module instead of the node one, then you can override the paths to these modules in config.json using config.json-dist as the sample.

Example

var WebAppValidator = require('webapp-validator-central');

// The constructor can optionally be supplied with an argument to validate icon paths absolute
var validator = new WebAppValidator();

validator.validate('/path/to/manifest.webapp', { url: false, packaged: false }, function (err, results) {
  console.log(results);
});

// First argument is a path to the manifest file, second argument is where you can override node's URL module and/or set a packaged app

License

Mozilla Public License Version 2.0