is-uic-location-code
Check if given value is a valid UIC location code (ENEE). Uses the uic-codes
package. Note that only 7-character codes are considered valid for now (instead of 8-digit with checksum, as specified by UIC), because most operators don't provide it, so that 8-digit codes are more likely the result of bugs or inconsistencies.
Installation
npm install is-uic-location-code
Usage
const isUicLocationCode = // true // true // true // false // false // false // false // false // false // false
Contributing
If you found a bug or want to propose a feature, feel free to visit the issues page.