wait... wait! are you telling me that #pnpm supports `package.json5` instead of `package.json`??? and I learn about it years later?
I've been praying for something like this for ages... and it turns out that we already had it.
wait... wait! are you telling me that #pnpm supports `package.json5` instead of `package.json`??? and I learn about it years later?
I've been praying for something like this for ages... and it turns out that we already had it.
JSON5 – 人性化的 JSON
➤ JSON5:易於人們閱讀和編寫的 JSON 檔案格式
✤ https://json5.org/
JSON5 是一種擴展流行的 JSON 檔案格式的工具,旨在更易於手動編寫和維護,並不適用於機器間通訊。它擴展了 ECMAScript 5.1 的語法,包括了一些產品。JSON5 解析和序列化的 JavaScript 庫是上述流行專案中的參考實現,同時也有其他平臺上的許多其他庫。
+ JSON5 真是一個很方便的工具,簡化了編寫和維護 JSON 檔案的過程。
+ 很棒的剖析和摘要!JSON5 的特性對於開發人員來說必定會有很大的幫助。
#JSON5
Got friday vibes and hacked together a JSON5 implementation for jq!
contemplating making a #JSON5 -> YAML transpiler just to never write any more YAML.
@srob True. And there is a Dart package for it so perhaps I could use it instead of the built-in parser library...hmm...
@slightlyoff I use #JSON5 in a Chrome Extension I own solely to comment the manifest and it works great.
I do think the bigger issue is that JSON is a terrible configuration language (but great wire format!). We should be using #TOML, #YAML, or something else more targeted for that use case.