luxon-timezone-validator
v0.0.5
Published
Validates Luxon Timezones and Suggests Alternatives
Downloads
5
Readme
luxon-timezone-validator
Validates timezones to check they're compatible with the Luxon library. Will also suggest alternatives if required.
Install
Available on NPM
npm install luxon-timezone-validator
API
const { isValidWithLuxor, suggestAlternativeTimezone } = require('luxon-timezone-validator');
const validTimezone = isValidWithLuxor(yourTimezone) || suggestAlternativeTimezone(yourTimezone);