Skip to content

Instantly share code, notes, and snippets.

Avatar

Thorsten Lünborg LinusBorg

View GitHub Profile
@LinusBorg
LinusBorg / .babelrc
Created Jun 13, 2017 — forked from SeanJM/.babelrc
TypeScript, VueJS and JSX webpack configuration
View .babelrc
{
"presets": [],
"plugins": ["transform-vue-jsx", "transform-es2015-modules-commonjs"]
}
View promisify-file-reader.js
function promisifyFileReader (filereader) {
function composeAsync (key) {
return function () {
var args = arguments
return new Promise (function (resolve, reject) {
//
function resolveHandler () {
cleanHandlers()
resolve(filereader.result)
}