LiveScript plugin that converts unary operator ^^ to Object.create
Transform plugin for livescript converts unary clone operator ^^ to Object.create
Repository on github
input
``livescript`
john = ^^Person
output
`javascript`
var john;
john = Object.create(Person);
simple use in livescript file
`livescript`
require! <[ livescript-transform-object-create/register main]>
and in simple use in js file
`js``
require ('livescript-transform-object-create/register')
require ('main') // this is livescript file
lsc serious-task.ls
node serious-task.js
python serious-task.py
If you really must to use cli just add require plugin file to the command.
But don't say I didn't warn you!
compiling
lsc -cr livescript-transform-object-create/register app.ls
running
node -r livescript-transform-object-create/register app.ls
If you are using Atom editor you may be interested in my packages which provide realtime code preview supporting this plugin.
* livescript-ide-preview - show transpiled code
* atom-livescript-provider - provides compilation service

If you are using Webpack you can try my loader whith support for this and other plugins.