{"id":16475957,"url":"https://github.com/softprops/lincolns","last_synced_at":"2026-05-05T10:34:42.872Z","repository":{"id":62442269,"uuid":"209979099","full_name":"softprops/lincolns","owner":"softprops","description":"👉 #️⃣ A JSON Pointer index for line/column information within JSON and YAML content","archived":false,"fork":false,"pushed_at":"2019-09-25T10:22:56.000Z","size":1074,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T05:45:49.008Z","etag":null,"topics":["json","tools","yaml"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.log","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-21T12:12:08.000Z","updated_at":"2023-10-11T00:37:18.000Z","dependencies_parsed_at":"2022-11-01T22:02:23.679Z","dependency_job_id":null,"html_url":"https://github.com/softprops/lincolns","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Flincolns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Flincolns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Flincolns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Flincolns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/lincolns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241144811,"owners_count":19917357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","tools","yaml"],"created_at":"2024-10-11T12:41:01.636Z","updated_at":"2026-05-05T10:34:42.832Z","avatar_url":"https://github.com/softprops.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  👉 #️⃣\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003e\n  lincolns\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n   A JSON Pointer index for line/column information within JSON and YAML content\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/softprops/lincolns/actions\"\u003e\n    \u003cimg src=\"https://github.com/softprops/lincolns/workflows/Main/badge.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/lincolns\"\u003e\n    \u003cimg src=\"http://meritbadge.herokuapp.com/lincolns\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://docs.rs/lincolns\"\u003e\n    \u003cimg src=\"https://docs.rs/lincolns/badge.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://softprops.github.io/lincolns\"\u003e\n   \u003cimg src=\"https://img.shields.io/badge/docs-master-green.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n## 📦 install\n\nAdd the following to your `Cargo.toml` file's `[dependencies]` heading\n\n```toml\n[dependencies]\nlincolns = \"0.1\"\n```\n\n## 🤸 usage\n\nLincolns exposes two sets of operations: one to load YAML/JSON content into an index for lookup and one to perform the lookup\n\n```rust\nuse lincolns::Position;\nuse std::error::Error;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n  Ok(\n    println!(\n      \"{:#?}\",\n      from_str(\"path/to/file.yml\")?.get(\"/path/to/field\")\n    )\n  )\n}\n```\n\nIf you care to see what JSON pointer paths are available you can iterate over them using `iter`\n\n```rust\nuse lincolns::from_str;\nuse std::error::Error;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n  for (ptr, pos) in from_str(\"path/to/file.yml\")?.iter() {\n    println!(\"{} =\u003e {:?}\", ptr, pos);\n  }\n  Ok(())\n}\n```\n\nThat's it.\n\n## 🤔 lincolns?\n\nlin(e and )col(umn)n(umber)s\n\nDoug Tangren (softprops) 2019","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Flincolns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Flincolns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Flincolns/lists"}