https://github.com/wangpin34/find-yaml-by-path
find line number of element in yaml by path
https://github.com/wangpin34/find-yaml-by-path
Last synced: 4 months ago
JSON representation
find line number of element in yaml by path
- Host: GitHub
- URL: https://github.com/wangpin34/find-yaml-by-path
- Owner: wangpin34
- License: mit
- Created: 2023-06-02T08:28:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T02:05:36.000Z (about 2 years ago)
- Last Synced: 2025-01-08T06:35:54.534Z (5 months ago)
- Language: TypeScript
- Homepage: https://wangpin34.github.io/find-yaml-by-path/
- Size: 240 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find-yaml-by-path
This repo show case how to find line number of element in `YAML` file.
这个项目展示了如何在 `YAML` 中查找 `path` 对应的行号。
## 为什么会有这个项目?
2. https://t.co/LMMnHK4eBx, 它为每个 yaml element 保存了start_line, end_line,完美符合我的需求。唯一的问题是,它可能不支持所有的 yaml 规范。比如已经测出的,不支持 https://t.co/schWx98QiI。另外,它是 python,那就势必要 wasm。
— 王师傅 penn (@dapengwg) May 24, 2023
当然,也可以花时间用 js copy 一份(AI??)。 pic.twitter.com/OlcmmlSt3D## 使用了那些技术?
- https://pypi.org/project/strictyaml/ python pkg,用于 查找 line number
- https://pyodide.org/en/stable/ python runtime,用于在浏览器里运行 python
- https://codemirror.net/5/ 代码编辑器,这样就可以在浏览器里编辑 yaml,测试 find line number
- UI & UX [preact](https://preactjs.com/), [tailwindcss](https://tailwindcss.com/), [daisyui](https://daisyui.com/)## LICENSE
MIT