Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 586 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 586 Bytes

es7-async-await

Kick start for ES7 async/await

screen shot 2016-12-20 at 17 09 01

Code

import "babel-polyfill";

(async () => {
    try {
        const response = await fetch('https://raw.githubusercontent.com/katopz/es7-async-await/master/README.md');
        const data = await response.text();
        document.write(`<pre>${data}</pre>`);
    } catch (e) {
        document.write(e);
    }
})();

Dev

npm run dev

Build

npm run build