RepositoryJavaScriptUSHoa Kỳ
getify

getify/let-er

DEPRECATED: Transpile non-ES6 let-blocks into ES6 (or ES3)

187sao
20fork
0issue
1lượt xem

🛠️ let-er: Transpile cú pháp let ( .. ) { .. } về ES6 hoặc ES3

Một công cụ build-step giúp bạn viết code JavaScript với phạm vi khối (block-scoping) ngay hôm nay, dù trình duyệt chưa hỗ trợ ES6.

let-er là một công cụ chuyển đổi cú pháp (transpiler) cho phép bạn sử dụng cú pháp let ( .. ) { .. } — một dạng rõ ràng và dễ đọc hơn để khai báo biến chỉ tồn tại trong một khối — và sau đó biên dịch về dạng chuẩn ES6 { let .. ; .. }, hoặc thậm chí về ES3 nếu cần hỗ trợ trình duyệt cũ.

✨ Điểm nổi bật

  • Hỗ trợ cú pháp let ( .. ) { .. }: Viết code block-scoping rõ ràng, dễ đọc.
  • Mặc định transpile sang ES6: Chuyển đổi thành { let .. ; .. } chuẩn.
  • Tùy chọn es3: Hỗ trợ trình duyệt ES3+ bằng kỹ thuật try..catch.
  • Không can thiệp let ..;: Chỉ xử lý cú pháp let ( .. ) { .. }, bỏ qua let ..; như var ..;.
  • Tích hợp dễ dàng: Chạy như một bước build trong quy trình phát triển.

💡 Vì sao đáng chú ý

let-er giải quyết hai vấn đề chính: (1) ES6 chưa phổ biến rộng rãi, và (2) cú pháp let ( .. ) { .. } — dù tốt hơn về khía cạnh độ rõ ràng — đã bị từ chối khỏi tiêu chuẩn ES6. Với let-er, bạn có thể viết code sạch, rõ ràng ngay hôm nay mà không cần chờ đợi.


#JavaScript #ES6 #Transpiler #BlockScoping #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
sampotts/plyr

Deprecated in favour of Video.js 10; security updates only. Simple HTML5, YouTube and Vimeo player.

30.0k
Oct 21, 2026
RepositoryJavaScript
phantombuster/nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)

495
Jun 19, 2020
RepositoryJavaScript
yordan-kanchelov/pixi-typescript-boilerplate

[DEPRECATED] Template for PixiJS using TypeScript and Webpack. Use pixijs/create-pixi instead.

190
Apr 19, 2026
RepositoryJavaScript
Kitware/paraviewweb

Web framework for building interactive visualization relying on VTK or ParaView to produce visualization data

180
Apr 17, 2023
RepositoryJavaScript
airbrake/node-airbrake

node-airbrake is no longer maintained. Please visit https://airbrake.io/docs/performance-monitoring/updating-from-deprecated-libraries-for-node/

176
Apr 23, 2020
RepositoryJavaScript
markitondemand/DEPRECATED-DataApis

Markit On Demand - Market Data APIs

176
May 17, 2017
RepositoryJupyter Notebook
ageron/handson-ml

⛔️ DEPRECATED – See https://github.com/ageron/handson-ml3 or handson-mlp instead.

25.6k
May 19, 2026
RepositoryHTML
harvesthq/chosen

Deprecated - Chosen is a library for making long, unwieldy select boxes more friendly.

21.9k
Dec 2, 2024
RepositoryRuby
progit/progit

Pro Git Book Content, 1st Edition - This content is deprecated. See 2nd edition at [progit2](https://github.com/progit/progit2)

6.0k
Apr 4, 2019