Socket
Socket
Sign inDemoInstall

is-timzone

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-timzone

Is this string a valid timezone? Validate timezones before using them in node, dates, or new objects.


Version published
Maintainers
1
Created

Readme

Source

is-timezone

Build npm version Known Vulnerabilities

Is this string a valid timezone? Validate timezones before using them in node, dates, or new objects.

Usage

Setup

const isTimezone = require('is-timezone');

or

import isTimezone from 'is-timezone';

Validate a timezone

const isTimezone = require('is-timezone');

if (isTimezone('Australia/Melbourne')) {
  // Do something
};


Example

A production example of using this transport is available here: photoprism-helper config.ts

Here is the relevant code, omitting anything not relevant to the transport:

TBA

Keywords

FAQs

Last updated on 05 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc