oSoc18 / OASIS

The official repository for the OASIS team at Osoc18
https://accessflanders.be
5 stars 0 forks source link

Install LDFetch #44

Closed Bertware closed 6 years ago

Bertware commented 6 years ago

Install LDFetch to unblock #19

Bertware commented 6 years ago

Example usage, tested and working in index.js


import * as ldfetch from "ldfetch";

var fetch = new ldfetch();
var main = async function () {
    var response = await fetch.get('https://graph.irail.be/sncb/connections/');
    console.log(response.triples);
}
try {
    main();
} catch (e) {
    console.error(e);
}