npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ramjawade/ng-kit

v0.0.1

Published

A specialized Angular UI kit featuring a timezone-aware Bootstrap Datepicker.

Readme

@ramjawade/ng-kit

A specialized Angular UI kit featuring a Timezone-Aware Bootstrap Datepicker.

npm version License: MIT

Features

  • 🌍 Timezone Aware: Select dates in any timezone (e.g., 'America/New_York') and get the corresponding local Date object.
  • 🕒 Timezone Pipe: Includes a lightweight timezone pipe to format dates in any IANA timezone using Intl.DateTimeFormat.
  • 📅 Bootstrap Integration: Built on top of ngx-bootstrap, offering a familiar and robust UI.
  • 🤖 Reactive Forms: Full support for Angular Reactive Forms (ControlValueAccessor).
  • 🔄 Auto-Conversion: Automatically handles offset calculations between local time and selected timezone.

Why this package?

Working with timezones in web applications is notoriously difficult. This package solves three critical problems:

  1. Bootstrap Datepicker Limitations: The standard ngx-bootstrap datepicker (and most others) assumes the user is selecting a time in their local browser timezone. It has no built-in concept of "Target Timezone".
  2. JS Date Object Limitations: The native JavaScript Date object does not store timezone information. It is always tied to the browser's local time or UTC. This makes it impossible to natively represent "10:00 AM in Tokyo" if the user is in New York without manual offset manipulation.
  3. Angular Pipe Limitations: Standard Angular pipes do not always conveniently accept IANA timezone strings (e.g., 'Asia/Tokyo') for all operations. We included a robust TimezonePipe to handle these conversions seamlessly.

Installation

npm install @ramjawade/ng-kit

Ensure you have the peer dependencies installed:

npm install ngx-bootstrap @angular/common @angular/core

Usage

  1. Import the Component: Import TimezoneBsDatepickerComponent in your component or module.

    import { Component } from '@angular/core';
    import { TimezoneBsDatepickerComponent } from '@ramjawade/ng-kit';
    
    @Component({
      selector: 'app-root',
      standalone: true,
      imports: [TimezoneBsDatepickerComponent],
      template: `
        <lib-timezone-bs-datepicker
          [(ngModel)]="date"
          [timezone]="'America/New_York'"
          placeholder="Select Date in NY">
        </lib-timezone-bs-datepicker>
      `
    })
    export class AppComponent {
      date = new Date();
    }
  2. Reactive Forms:

    this.form = this.fb.group({
      scheduledDate: [new Date()]
    });
    <lib-timezone-bs-datepicker
      formControlName="scheduledDate"
      [timezone]="'Asia/Tokyo'">
    </lib-timezone-bs-datepicker>
  3. Timezone Pipe: Use the pipe to display dates in a specific timezone across your app.

    <!-- Imported via TimezonePipe -->
    <p>New York Time: {{ currentDate | timezone:'America/New_York' }}</p>

Compatibility

  • Angular 19+
  • ngx-bootstrap 12+

License

MIT © Ram Jawade