realm-js/scripts/handle-license-check.js

19 lines
460 B
JavaScript

#!/usr/bin/env node
process.stdin.resume();
process.stdin.setEncoding('utf8');
var licenseCheckerResult;
process.stdin.on('data', function(data) {
licenseCheckerResult += data;
});
process.stdin.on('end', function() {
if (!licenseCheckerResult) {
console.log("All licenses are accepted");
} else {
console.error("Unknown license detected in dependency:");
console.error(licenseCheckerResult);
}
});