Socket
Socket
Sign inDemoInstall

get-zonetab

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    get-zonetab

Get the latest zone.tab file form IANA time zone database


Version published
Weekly downloads
58
increased by5.45%
Maintainers
1
Install size
519 kB
Created
Weekly downloads
 

Readme

Source

get-zonetab

NPM version Build Status Coverage Status Dependency Status devDependency Status

A Node module to get the latest zone.tab file form IANA Time Zone Database

const getZonetab = require('get-zonetab');

getZonetab().then(string => {
  string; //=> '# tz zone descriptions (deprecated version)\n ...'
});

Installation

Use npm.

npm install get-zonetab

API

const getZonetab = require('get-zonetab');

getZonetab([options])

options: Object
Return: Promise instance

It gets and extracts zone.tab file form https://www.iana.org/time-zones and returns a promise for a string of file contents.

Options

All options except for encoding will be directly used as Request options.

options.encoding

Type: String or null
Default: utf8

Determine the encoding of the stirng or get a Buffer instead if this option is null.

getZonetab({encoding: null}).then(buffer => {
  buffer; //=> <Buffer 23 20 74 7a 20 7a 6f 6e 65 20 64 65 73 63 72 ... >
});

License

Copyright (c) 2016 Shinnosuke Watanabe

Licensed under the MIT License.

Keywords

FAQs

Last updated on 06 Jun 2016

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