UNPKG

ecmarkup

Version:

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

13 lines (10 loc) 270 B
'use strict'; const Spec = require('./Spec'); const utils = require('./utils'); exports.build = function (path, fetch, opts) { return fetch(path) .then(utils.htmlToDoc) .then(function (doc) { return new Spec(path, fetch, doc, opts).build(); }); };