Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seanghay/mpwt-parser
A JSON parser for ts.mpwt.gov.kh plate number QR Code
https://github.com/seanghay/mpwt-parser
cambodia javascript mpwt nodejs qrcode
Last synced: about 2 months ago
JSON representation
A JSON parser for ts.mpwt.gov.kh plate number QR Code
- Host: GitHub
- URL: https://github.com/seanghay/mpwt-parser
- Owner: seanghay
- License: apache-2.0
- Created: 2023-01-18T11:28:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T12:57:11.000Z (almost 2 years ago)
- Last Synced: 2024-01-04T18:22:25.457Z (about 1 year ago)
- Topics: cambodia, javascript, mpwt, nodejs, qrcode
- Language: JavaScript
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
## MPWT Parser
A parser for `https://ts.mpwt.gov.kh/xxx` plate number QR Code. The parser will fetch data and parse it as a JSON format.
### Installation
This package is ESM-only!
```
npm install mpwt-parser
```### Usage
```js
import { parse } from 'mpwt-parser'const result = await parse("http://ts.mpwt.gov.kh/Q01VHN2B");
```Result
```jsonc
{
"plate_no": { "en": "SIEM REAP 3A-2399", "km": "សៀមរាប 3A-2399" },
"brand": "HYUNDAI COUNTY",
"type": { "en": "HEAVY BUS", "km": "ដឹកអ្នកដំណើរធុនធំ" },
"color": { "en": "MILK COLOR", "km": "ទឹកដោះគោ" },
"engine_no": "D4D***61727",
"frame_no": "KMJHD1******28960",
"power": "140",
"chassis_no": "NIL",
"axle_no": "2",
"cylinder_no": "4",
"cylinder_size": "3907",
"year_made": "2006"
}
```---
#### License
`Apache-2.0`