Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moment-timezone-data-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-timezone-data-webpack-plugin

Remove unneeded data from moment-timezone in a webpack build

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
144K
decreased by-0.89%
Maintainers
1
Weekly downloads
 
Created

What is moment-timezone-data-webpack-plugin?

The moment-timezone-data-webpack-plugin is a Webpack plugin designed to optimize the inclusion of moment-timezone data in your Webpack bundles. It allows you to include only the timezone data you need, reducing the overall bundle size and improving performance.

What are moment-timezone-data-webpack-plugin's main functionalities?

Include Specific Timezones

This feature allows you to include only specific timezones in your Webpack bundle. In this example, only the data for 'America/New_York' and 'Europe/London' timezones will be included.

const MomentTimezoneDataPlugin = require('moment-timezone-data-webpack-plugin');

module.exports = {
  plugins: [
    new MomentTimezoneDataPlugin({
      matchZones: 'America/New_York|Europe/London'
    })
  ]
};

Include Timezones by Region

This feature allows you to include all timezones within a specific region. In this example, all timezones in the 'America' region from the year 2000 to 2030 will be included.

const MomentTimezoneDataPlugin = require('moment-timezone-data-webpack-plugin');

module.exports = {
  plugins: [
    new MomentTimezoneDataPlugin({
      startYear: 2000,
      endYear: 2030,
      matchZones: 'America/*'
    })
  ]
};

Include Timezones by Year Range

This feature allows you to include timezone data for a specific range of years. In this example, timezone data from the year 2010 to 2020 will be included.

const MomentTimezoneDataPlugin = require('moment-timezone-data-webpack-plugin');

module.exports = {
  plugins: [
    new MomentTimezoneDataPlugin({
      startYear: 2010,
      endYear: 2020
    })
  ]
};

Other packages similar to moment-timezone-data-webpack-plugin

Keywords

FAQs

Package last updated on 21 Jan 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc