Skip to content

w0d/js-symbol-literals

Repository files navigation

js-symbol-literals

Extend javascript with symbol literals

when symbol use is heavy - code gets peppered with lots of Symbol.for('mySymbolName')

borrowing from Lingo's symbol literals, you can type instead #mySymbolName

calling main(scriptText) will convert all occurances of symbol literals eg #symbolName to valid javascript Symbol.for('symbolName')

currently experimental as needs much testing, currently fails if your javascript uses regular expression literals containing the # character

About

Extend javascript with symbol literals

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published