2019-05-29 23:31:31 +01:00
|
|
|
# decaffeinate
|
|
|
|
|
|
|
|
> Converti script CoffeScript in moderno JavaScript moderno.
|
2019-06-09 18:54:08 +01:00
|
|
|
> Maggiori informazioni: <https://decaffeinate-project.org>.
|
2019-05-29 23:31:31 +01:00
|
|
|
|
|
|
|
- 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` e `module.exports` in `import` ed `export`:
|
|
|
|
|
|
|
|
`decaffeinate --use-js-modules {{percorso/al/file.coffee}}`
|
|
|
|
|
|
|
|
- Converti un file CoffeeScript, permettendo di esportare nomi:
|
|
|
|
|
|
|
|
`decaffeinate --loose-js-modules {{percorso/al/file.coffee}}`
|