nodejs-mval
Command line tool used to validate manifests of various kind (jQuery, Android, composer, npm, launch.js wordpress)
Usage
- Install node and npm if you haven't already.
- Run
$ npm install -g mval
in your console - Now you can validate manifests anywhere.
Command line
The command line tool will automatically determine which type of manifest you're trying to validate.
$ mval /var/www/project/composer.json
Use mval programatically
var mval = MANIFEST = mvalMANIFEST; // Validate android manifest filevar faults = mval;if faultslength > 0 throw 'Validation of AndroidManifest.xml failed: \n'+faults; // You can of course also validate ordinary objectsvar obj = ...;var faults = mval;if faultslength > 0 throw 'Validation of composer manifest failed: \n'+faults;
Changelog
1.1.4
- Numerous small bugs are fixed
- Change in how WordPress version definitions is validated
1.1.0
- Fixed bug in wordpress validation
- Fixed bug regarding validation of version numbers in composer manifests
- Added validation of android manifests