Skip to content

anko/eslisp-camelify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

eslisp macro: this-is-a-variable → thisIsAVariable

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •