0.4.0 ā€¢ Published 7 years ago

eslisp-camelify v0.4.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

eslisp-camelify npm.io npm.io npm.io

An eslisp macro that rewrites all atoms in its arguments from dash-separated to camelCase, but otherwise touches nothing.

Handy if you prefer lisp-like dash-separated-variables.

Example

(macro camelify (require "eslisp-camelify"))
(camelify
  (explain-that (the-answer-is 42)))

ā†“

explainThat(theAnswerIs(42));

It probably makes good sense to use this as a transform macro to wrap your whole program though:

eslc -t eslisp-camelify < input.esl > output.js

See the tests for fuller usage.

License

ISC.