same-encoder
same-encoder copied to clipboard
Isomorphic encoding for Specific Area Message Encoding (Emergency Alert System) messages
The code in same-validator.js does not properly check for 15 minute lengths when the hour is less than 1. The current code is: ``` if (hr
The spec allows for up to 31 region codes in a message; the library only supports one.
Added functionality for multiple region codes. See server.js example for syntax. I left some debug stuff behind. I'll remove that and upload a new version
sudo npm install -g same-encoder same-encoder --originator PEP (...) header.wav same-encoder --footer footer.wav
If it's < 8 chars, it could be automatically right-padded with spaces to the required length.
Should check against `/^[A-Z0-9 /]+$/`; without this check, invalid messages could be produced.