bevry/cson
CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
📝 CSON: JSON phiên bản CoffeeScript với comment và chuỗi đa dòng
CSON giống JSON nhưng viết cho object CoffeeScript — dễ đọc, dễ viết hơn.
CSON (CoffeeScript-Object-Notation) là định dạng tuần tự hóa dữ liệu dựa trên cú pháp CoffeeScript. Thay vì dùng dấu ngoặc nhọn, dấu phẩy và trích dẫn chuỗi như JSON, CSON cho phép dùng comment (#), chuỗi đa dòng ('''...''') và cú pháp không cần dấu phẩy. Dự án do Bevry phát triển, tích hợp cson-parser để phân tích cú pháp.
✨ Điểm nổi bật
- Comment hỗ trợ: Dùng
#để thêm chú thích trực tiếp trong file CSON. - Chuỗi đa dòng: Sử dụng
'''để viết chuỗi dài không cần escape ký tự. - Cú pháp nhẹ nhàng: Không cần dấu phẩy, dấu ngoặc nhọn hay trích dẫn quanh key.
- Tích hợp cson-parser: Phiên bản 2+ là wrapper bọc quanh cson-parser để xử lý thấp cấp.
- Hỗ trợ Node.js: Dễ dàng tích hợp vào dự án Node.js thông qua npm.
- Được dùng rộng rãi: Nhiều dự án npm phụ thuộc trực tiếp hoặc gián tiếp vào CSON.
💡 Vì sao đáng chú ý
CSON mang lại trải nghiệm viết cấu hình và dữ liệu gần gũi hơn so với JSON thẳng thừng. Với cú pháp được lấy cảm hứng từ CoffeeScript, CSON giúp giảm thiểu lỗi cú pháp và tăng khả năng đọc hiểu — đặc biệt hữu ích khi làm việc nhóm hoặc viết tài liệu dài. Thích hợp cho file cấu hình, metadata dự án hoặc dữ liệu có cấu trúc phức tạp.
#CSON #CoffeeScript #JSON #DataFormat #NodeJS #TiniX
Similar Projects
Discover other similar projects and AI models.
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
Knowledge infrastructure to make your agents smarter. Search, scrape and access 550+ data providers through one API.
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
Coding articles to level up your development skills
:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.