RepositoryCoffeeScript
bevry

bevry/cson

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.

1.3kstars
55forks
4issues
1views

📝 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.

RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.4k
Nov 20, 2026
RepositoryTypeScript
bevry/envfile

Parse and write environment files with Node.js

63
Oct 13, 2026
RepositoryTypeScript
firecrawl/firecrawl

Knowledge infrastructure to make your agents smarter. Search, scrape and access 550+ data providers through one API.

207.6k
Nov 23, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.7k
Jul 26, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

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...

♥0
164.7M
Jun 1, 2026
RepositoryJavaScript
Chalarangelo/30-seconds-of-code

Coding articles to level up your development skills

129.6k
Nov 17, 2026
RepositoryC++
electron/electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

124.0k
Nov 20, 2026
RepositoryJavaScript
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

123.9k
Nov 22, 2026
RepositoryPHP
coollabsio/coolify

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.

66.4k
Nov 21, 2026