futurescript icon indicating copy to clipboard operation
futurescript copied to clipboard

Expose/export internal API

Open kristianmandrup opened this issue 8 years ago • 2 comments

I see you only expose fus as a binary expecting args bin

With compile function defined using let but not exported. Please improve the internals to allow for better composability and for tools such as gulp to use the API/library directly without involving the shell.

I might send you a PR for this. Just cloned the repo to play around...

Or perhaps this is the locked-api.js with export let generateOutput = function(input) { ?? I will try my luck. Better use const and improve/document the internal API.

kristianmandrup avatar Mar 05 '17 14:03 kristianmandrup

I'll consider it. Yes this is the locked-api.js.

zhanzhenzhen avatar Mar 05 '17 15:03 zhanzhenzhen

Yes it's generateOutput.

zhanzhenzhen avatar Mar 05 '17 15:03 zhanzhenzhen