@road-signs/la
v0.1.2
Published
Laos road signs — TypeScript registry, inline SVGs, and image assets
Maintainers
Readme
@road-signs/la
Road signs for Laos — a TypeScript registry with most signs' artwork inlined as SVG, plus typed lookup helpers.
Install
npm install @road-signs/laAt a glance
| | |
| ------------------- | ---------------------------------------------------------------- |
| Signs | 33 |
| With vector artwork | 32 |
| Categories | information, mandatory, priority, prohibitory, warning |
| Standard | Vienna Convention (Lao PDR Road Traffic Law) |
| Regulator | MPWT |
| Drive side | right-hand |
| Language(s) | Lao |
Usage
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/la';
signs; // the whole registry
getSign('v1-curve-to-left'); // by slug id
getSignByCode('V1'); // by official code
getSignsByCategory('information'); // by categoryEach sign carries its own artwork, so nothing else has to be copied or served:
const sign = getSign('v1-curve-to-left')!;
sign.svg; // inline, SVGO-optimised SVG markup1 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 Laos 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
Links
License
MIT © Karl Norling
