UNPKG

molstar

Version:

A comprehensive macromolecular library.

28 lines 1.1 kB
"use strict"; /** * Copyright (c) 2017 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal <david.sehnal@gmail.com> */ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var node_fetch_1 = (0, tslib_1.__importDefault)(require("node-fetch")); var mapping_1 = require("./mapping"); (function () { return (0, tslib_1.__awaiter)(this, void 0, void 0, function () { var data, json; return (0, tslib_1.__generator)(this, function (_a) { switch (_a.label) { case 0: return [4 /*yield*/, (0, node_fetch_1.default)('https://www.ebi.ac.uk/pdbe/api/mappings/1tqn?pretty=true')]; case 1: data = _a.sent(); return [4 /*yield*/, data.json()]; case 2: json = _a.sent(); console.log((0, mapping_1.createMapping)(json)); return [2 /*return*/]; } }); }); }()); //# sourceMappingURL=test.js.map