Skip to content

katopz/es7-async-await

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Kick start for ES7 async/await

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published