UNPKG

ecmarkup

Version:

Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.

12 lines (10 loc) 260 B
var Spec = require('./Spec'); var utils = require('./utils'); exports.build = function(path, fetch) { return fetch(path) .then(utils.htmlToDoc) .then(function(doc) { var spec = new Spec(path, fetch, doc); return spec.build(); }); };