Initial WIP commit with streaming parser

This commit is contained in:
Andrew Sliwinski 2016-03-15 10:31:35 -04:00
parent 41119c5869
commit 4642c66e08
10 changed files with 260 additions and 1 deletions

13
index.js Normal file
View file

@ -0,0 +1,13 @@
var validate = require('./lib/validate');
var parse = require('./lib/parse');
module.exports = function (input, callback) {
parse(input, function (err, project) {
if (err) return callback(err);
validate(project, function (err) {
if (err) return callback(err);
callback(null, project);
});
});
};