@road-signs/rw
v0.1.2
Published
Rwanda road signs — TypeScript registry, inline SVGs, and image assets
Downloads
656
Maintainers
Readme
@road-signs/rw
Road signs for Rwanda — a TypeScript registry with every sign's artwork inlined as SVG, plus typed lookup helpers.
Install
npm install @road-signs/rwAt a glance
| | |
| ------------------- | -------------------------------------- |
| Signs | 45 |
| With vector artwork | 45 |
| Categories | mandatory |
| Standard | Vienna Convention / Belgian-influenced |
| Regulator | RNRA |
| Drive side | right-hand |
| Language(s) | Kinyarwanda, English, French |
Usage
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/rw';
signs; // the whole registry
getSign('r101-600-sadc-road-sign'); // by slug id
getSignByCode('R101-600'); // by official code
getSignsByCategory('mandatory'); // by categoryEach sign carries its own artwork, so nothing else has to be copied or served:
const sign = getSign('r101-600-sadc-road-sign')!;
sign.svg; // inline, SVGO-optimised SVG markup
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
Links
License
MIT © Karl Norling
