{"id":15890591,"url":"https://github.com/dimfeld/merge-geo","last_synced_at":"2025-09-15T06:28:18.663Z","repository":{"id":82185679,"uuid":"606173255","full_name":"dimfeld/merge-geo","owner":"dimfeld","description":"Merge CSV data into GeoJSON Features","archived":false,"fork":false,"pushed_at":"2023-02-25T03:36:38.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T08:09:55.711Z","etag":null,"topics":["cli","csv","geodata","geojson"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/merge-geo","language":"JavaScript","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/dimfeld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-24T19:10:53.000Z","updated_at":"2023-02-27T17:46:57.000Z","dependencies_parsed_at":"2023-07-06T14:15:08.849Z","dependency_job_id":null,"html_url":"https://github.com/dimfeld/merge-geo","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"6870f19821cbd86cf3ee82fb27b6a6629b06b30b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fmerge-geo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fmerge-geo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fmerge-geo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fmerge-geo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimfeld","download_url":"https://codeload.github.com/dimfeld/merge-geo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246856776,"owners_count":20845015,"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":["cli","csv","geodata","geojson"],"created_at":"2024-10-06T07:06:55.214Z","updated_at":"2025-04-02T17:21:57.448Z","avatar_url":"https://github.com/dimfeld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# merge-geo\n\nA utility to read CSV data about geographic locations and merge it into a GeoJSON FeatureCollection.\n\n## Example\n\n```bash\n$ npm -g install merge-geo\n$ merge-geo\n  --feature-id CBSAFP # The property containing the feature ID, if not present as `id` \\\n  --csv-id CBSA # CSV column containing the ID \\\n  --filter '!STCOU' # Javascript expression to filter CSV rows  \\\n   -c cbsa-est2021-alldata.csv # Input CSV data \\\n   -j cbsa.json # Input GeoJSON \\\n  --autocoerce # Automatically convert strings to numbers when possible \\\n\u003e cbsa_new.json\n```\n\n## Usage\n\n```\nMerge data from CSV files into GeoJSON Features\n\nOptions:\n      --version           Show version number                                                                                                          [boolean]\n      --help              Show help                                                                                                                    [boolean]\n      --feature-id, --id  A Feature property containing the ID used to match to CSV rows.\n                          If absent, an `id` field will be expected in each Feature     [string]\n      --csv-id            A CSV column containing the ID to match to GeoJSON Features. \n                          If absent, the `feature-id` option is used if present.           [string]\n      --filter            One or more Javascript boolean expressions that will be used to filter the CSV rows.                                           [array]\n  -c, --csv               The paths to one or more CSV files                                                                                  [array] [required]\n  -j, --json              The path to a GeoJSON file                                                                                         [string] [required]\n      --autocoerce, --ac  Attempt to convert all CSV values to numbers and booleans                                                                    [boolean]\n  -c, --coerce            Attempt to convert these CSV columns to numbers and booleans                                                                   [array]\n  -d, --delimiter         The CSV column delimiter                                                                                       [string] [default: \",\"]\n      --include           A list of CSV columns to include                                                                                               [array]\n      --exclude           A list of CSV columns to exclude                                                                                               [array]\n      --strict            Throw an error if a CSV row does not match a GeoJSON Feature                                                                 [boolean]\n  -r, --replace           Replace the input GeoJSON file with the merged output                                                                        [boolean]\n  -o, --output            Write the output to this file instead of the terminal                                                                         [string]\n      --prefix            A prefix to add to all CSV column names when adding them to Features                                                          [string]\n      --omit-empty        Ignore empty values in the CSV instead of adding empty strings                                                               [boolean]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Fmerge-geo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimfeld%2Fmerge-geo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Fmerge-geo/lists"}