{"id":18369180,"url":"https://github.com/ideal-postcodes/postcodesiocsv","last_synced_at":"2025-04-10T19:39:52.024Z","repository":{"id":52376963,"uuid":"78102982","full_name":"ideal-postcodes/postcodesiocsv","owner":"ideal-postcodes","description":"A quick command line script to translate a CSV of postcodes","archived":false,"fork":false,"pushed_at":"2021-04-30T08:40:07.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T23:35:19.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ideal-postcodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-05T10:20:47.000Z","updated_at":"2021-04-30T08:40:10.000Z","dependencies_parsed_at":"2022-08-21T07:10:08.634Z","dependency_job_id":null,"html_url":"https://github.com/ideal-postcodes/postcodesiocsv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideal-postcodes%2Fpostcodesiocsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideal-postcodes%2Fpostcodesiocsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideal-postcodes%2Fpostcodesiocsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideal-postcodes%2Fpostcodesiocsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ideal-postcodes","download_url":"https://codeload.github.com/ideal-postcodes/postcodesiocsv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281424,"owners_count":21077423,"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":[],"created_at":"2024-11-05T23:28:40.437Z","updated_at":"2025-04-10T19:39:51.997Z","avatar_url":"https://github.com/ideal-postcodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postocodes.io CSV Translation\n\nA quick command line script to translate a CSV of postcodes (with postcodes in first column) into a list of results retrieved from the Postcodes.io API\n\n## Install\n\nSince this is a command line script, you will need to install this globally\n\n```\nnpm install postcodesiocsv -g\n```\n\n## Getting Started\n\n```\npostcodesiocsv -i \u003cINPUT_FILE.csv\u003e -o \u003cOUTPUT_FILE.csv\u003e\n```\n\nThis will return postcode,longitude,latitude by default. Specify your own output schema with the `-s` flag with properties separated by a comma\n\n```\npostcodesiocsv -i \u003cINPUT_FILE.csv\u003e -o \u003cOUTPUT_FILE.csv\u003e -s postcode,country,northings,eastings\n```\n\nYou can specify the column index for where your postcodes will be using the `-c` flag. Note, this is zero indexed, so `-c 1` represents the second column\n\n```\npostcodesiocsv -i \u003cINPUT_FILE.csv\u003e -o \u003cOUTPUT_FILE.csv\u003e -c 2\n```\n\n## Example\n\ninput.csv\n\n```\nCA7 3AJ\nHP10 9AW\nINVALID POSTCODE\nPL17 7BW\n```\n\nRun with:\n```\npostcodesiocsv -i example.csv -o output.csv\n```\n\noutput.csv\n```\nCA7 3AJ,-3.32567403434222,54.7646808638358\nHP10 9AW,-0.711040381510592,51.5989108287906\nINVALID POSTCODE,,\nPL17 7BW,-4.31379882001634,50.5040671479147\n```\n\n## Changelog\n\n1.0.3 Include flag to set postcode column\n\n1.0.2 Initiate script from ./bin/\n\n1.0.0 Initial commit","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideal-postcodes%2Fpostcodesiocsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fideal-postcodes%2Fpostcodesiocsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideal-postcodes%2Fpostcodesiocsv/lists"}