{"id":24678322,"url":"https://github.com/firstclasspostcodes/osgb","last_synced_at":"2025-03-21T18:23:40.538Z","repository":{"id":54416857,"uuid":"232832235","full_name":"firstclasspostcodes/osgb","owner":"firstclasspostcodes","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-19T07:23:05.000Z","size":679,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T21:16:51.537Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/firstclasspostcodes.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":"2020-01-09T14:50:33.000Z","updated_at":"2020-01-27T15:47:56.000Z","dependencies_parsed_at":"2022-08-13T15:00:49.399Z","dependency_job_id":null,"html_url":"https://github.com/firstclasspostcodes/osgb","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstclasspostcodes%2Fosgb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstclasspostcodes%2Fosgb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstclasspostcodes%2Fosgb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstclasspostcodes%2Fosgb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstclasspostcodes","download_url":"https://codeload.github.com/firstclasspostcodes/osgb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244123973,"owners_count":20401679,"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":"2025-01-26T13:16:39.952Z","updated_at":"2025-03-21T18:23:40.512Z","avatar_url":"https://github.com/firstclasspostcodes.png","language":"JavaScript","readme":"# OSGB \n\n![](https://github.com/firstclasspostcodes/osgb/workflows/Publish%20Package/badge.svg)\n\nThis tiny JS library is used as a helper library to convert between both OSGB and WGS84 geo-cordinate systems. It provides two exported functions `toLatLng()` and `toEastingNorthing()`.\n\n## Installation\n\nThe CLI can be installed globally, using:\n\n```\nnpm i -g @firstclasspostcodes/osgb\n```\n\n## Usage\n\n```js\nconst { toLatLng, toEastingNorthing } = require('@firstclasspostcodes/osgb');\n\nconst position = {\nlatitude: 51.5018949,\n  longitude: -0.2107977,\n};\n\nconst osgb = toEastingNorthing(position);\n\nconst { easting, northing } = osgb;\n\nconst wgs84 = toLatLng({ easting, northing });\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstclasspostcodes%2Fosgb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstclasspostcodes%2Fosgb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstclasspostcodes%2Fosgb/lists"}