@road-signs/ua
v0.1.3
Published
Ukraine road signs — TypeScript registry, inline SVGs, and image assets
Maintainers
Readme
@road-signs/ua
Road signs for Ukraine — a TypeScript registry with most signs' artwork inlined as SVG, plus typed lookup helpers.
Install
npm install @road-signs/uaAt a glance
| | |
| ------------------- | ---------------------------------------------------------------- |
| Signs | 309 |
| With vector artwork | 303 |
| Categories | information, mandatory, priority, prohibitory, warning |
| Standard | Правила дорожнього руху (PDR) — Vienna Convention |
| Regulator | Ukravtodor |
| Drive side | right-hand |
| Language(s) | Ukrainian |
Usage
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/ua';
signs; // the whole registry
getSign('curve-to-the-right-curve-to-the-right'); // by slug id
getSignByCode('curve-to-the-right'); // by official code
getSignsByCategory('information'); // by categoryEach sign carries its own artwork, so nothing else has to be copied or served:
const sign = getSign('curve-to-the-right-curve-to-the-right')!;
sign.svg; // inline, SVGO-optimised SVG markup6 of these signs carry inline artwork. They have no usable vector source — either none was published upstream, or the only artwork is a monochrome trace that renders as a black shape. Vector sources for Ukraine are welcome: see the coverage notes.
sign.assetsholds paths into this repo's build-timeassets/tree. That directory is ~16GB across all countries and is not published — render fromsign.svginstead.
Sources
Notes
Codes use decimal format: 1.xx (warning), 2.xx (priority), 3.xx (prohibitory), 4.xx (mandatory), 5.xx (information).
Links
License
MIT © Karl Norling
