eslisp-camelify

0.4.0 • Public • Published

eslisp-camelify

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.

Readme

Keywords

Package Sidebar

Install

npm i eslisp-camelify

Weekly Downloads

1

Version

0.4.0

License

ISC

Last publish

Collaborators

  • an