{"id":16564906,"url":"https://github.com/k-yle/light-characteristics","last_synced_at":"2025-08-07T01:32:39.022Z","repository":{"id":210204820,"uuid":"713663117","full_name":"k-yle/light-characteristics","owner":"k-yle","description":"🛥️🔦 A parser for light characteristics used on nautical charts","archived":false,"fork":false,"pushed_at":"2024-05-09T10:29:27.000Z","size":306,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-05T08:45:16.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://kyle.kiwi/light-characteristics","language":"TypeScript","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/k-yle.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-03T01:31:40.000Z","updated_at":"2024-05-09T10:29:31.000Z","dependencies_parsed_at":"2024-05-09T11:42:44.095Z","dependency_job_id":"e19dbf18-37bf-4d70-95fb-08b9bad0b3f8","html_url":"https://github.com/k-yle/light-characteristics","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"0edbaac4f5a2e73049a2563e900ef6561c416074"},"previous_names":["k-yle/light-characteristics"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-yle/light-characteristics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Flight-characteristics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Flight-characteristics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Flight-characteristics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Flight-characteristics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-yle","download_url":"https://codeload.github.com/k-yle/light-characteristics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-yle%2Flight-characteristics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269185289,"owners_count":24374609,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-11T20:45:23.532Z","updated_at":"2025-08-07T01:32:38.957Z","avatar_url":"https://github.com/k-yle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Light Characteristic Parser\n\n[![Build Status](https://github.com/k-yle/light-characteristics/workflows/Build%20and%20Test/badge.svg)](https://github.com/k-yle/light-characteristics/actions)\n[![Coverage Status](https://coveralls.io/repos/github/k-yle/light-characteristics/badge.svg?branch=main\u0026t=LQmPNl)](https://coveralls.io/github/k-yle/light-characteristics?branch=main)\n[![npm version](https://badge.fury.io/js/light-characteristics.svg)](https://badge.fury.io/js/light-characteristics)\n[![npm](https://img.shields.io/npm/dt/light-characteristics.svg)](https://www.npmjs.com/package/light-characteristics)\n![npm bundle size](https://img.shields.io/bundlephobia/minzip/light-characteristics)\n\n🛥️🔦 A JavaScript library to encode and decode [light characteristics](https://en.wikipedia.org/wiki/Light_characteristic) used on [nautical charts](https://en.wikipedia.org/wiki/Nautical_chart).\n\n## Install\n\n```sh\nnpm install light-characteristics\n```\n\n## Usage\n\n```js\nimport { decodeLight, encodeLight } from 'light-characteristics';\n\nconst light = decodeLight('AeroF.RY.5m');\nlight; // -\u003e { LITCHR: 'F', COLOUR: ['R', 'Y'], HEIGHT: 5, CATLIT: 'aero' }\n\nconst encoded = encodeLight({\n  LITCHR: 'F',\n  COLOUR: ['R', 'Y'],\n  HEIGHT: 5,\n  CATLIT: 'aero',\n});\nencoded; // -\u003e 'AeroF.RY.5m'\n```\n\n## Try it out\n\nThis repository also contains an editor UI, which is [available online](https://kyle.kiwi/light-characteristics).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-yle%2Flight-characteristics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-yle%2Flight-characteristics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-yle%2Flight-characteristics/lists"}