Skip to content

Instantly share code, notes, and snippets.

@rgbkrk
Created July 31, 2015 22:36
Show Gist options
  • Save rgbkrk/94b99537dd1983dfad91 to your computer and use it in GitHub Desktop.
Save rgbkrk/94b99537dd1983dfad91 to your computer and use it in GitHub Desktop.
🎉
> require("./src/transformime.js")
/Users/kyle6475/code/transformime/src/transformime.js:3
import {TextTransformer} from './text.transformer';
^^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:413:25)
at Object.Module._extensions..js (module.js:448:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at repl:1:1
at REPLServer.defaultEval (repl.js:154:27)
at bound (domain.js:254:14)
> require("babel/register")
[Function]
> require("./src/transformime.js")
{ Transformime: [Function: Transformime],
TextTransformer: { [Function: TextTransformer] mimetype: 'text/plain' },
ImageTransformer: { [Function: ImageTransformer] mimetype: [ 'image/png', 'image/jpeg', 'image/gif' ] },
HTMLTransformer: { [Function: HTMLTransformer] mimetype: 'text/html' } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment