wasm-bindgen/examples/fetch/index.js
2018-08-19 18:41:02 -04:00

12 lines
336 B
JavaScript

const rust = import('./fetch');
rust.then(m => {
m.run().then((data) => {
console.log(data);
console.log("The latest commit to the wasm-bindgen %s branch is:", data.name);
console.log("%s, authored by %s <%s>", data.commit.sha, data.commit.commit.author.name, data.commit.commit.author.email);
})
});