mirror of https://github.com/CrimsonTome/tldr.git
590 B
590 B
decaffeinate
Converti script CoffeScript in moderno JavaScript moderno. Maggiori informazioni: https://decaffeinate-project.org.
- Converti un file CoffeeScript in JavaScript:
decaffeinate {{percorso/al/file.coffee}}
- Converti un file CoffeeScript v2 in JavaScript:
decaffeinate --use-cs2 {{percorso/al/file.coffee}}
- Converti
require
emodule.exports
inimport
edexport
:
decaffeinate --use-js-modules {{percorso/al/file.coffee}}
- Converti un file CoffeeScript, permettendo di esportare nomi:
decaffeinate --loose-js-modules {{percorso/al/file.coffee}}