2019-05-30 01:31:31 +03:00
|
|
|
# decaffeinate
|
|
|
|
|
2020-10-15 00:57:25 +03:00
|
|
|
> Converti script CoffeScript in JavaScript moderno.
|
2019-06-09 20:54:08 +03:00
|
|
|
> Maggiori informazioni: <https://decaffeinate-project.org>.
|
2019-05-30 01:31:31 +03:00
|
|
|
|
|
|
|
- Converti un file CoffeeScript in JavaScript:
|
|
|
|
|
2022-10-20 16:26:58 +03:00
|
|
|
`decaffeinate {{percorso/del/file.coffee}}`
|
2019-05-30 01:31:31 +03:00
|
|
|
|
|
|
|
- Converti un file CoffeeScript v2 in JavaScript:
|
|
|
|
|
2022-10-20 16:26:58 +03:00
|
|
|
`decaffeinate --use-cs2 {{percorso/del/file.coffee}}`
|
2019-05-30 01:31:31 +03:00
|
|
|
|
|
|
|
- Converti `require` e `module.exports` in `import` ed `export`:
|
|
|
|
|
2022-10-20 16:26:58 +03:00
|
|
|
`decaffeinate --use-js-modules {{percorso/del/file.coffee}}`
|
2019-05-30 01:31:31 +03:00
|
|
|
|
|
|
|
- Converti un file CoffeeScript, permettendo di esportare nomi:
|
|
|
|
|
2022-10-20 16:26:58 +03:00
|
|
|
`decaffeinate --loose-js-modules {{percorso/del/file.coffee}}`
|