open-index/open-npm huggingface dataset:
npm package: @moncici/date-time-processor
Description: date util
Author: moncici007
Latest version: 1.0.4

# Time Zone Formatter

This module provides a simple utility function to format timestamps into a string representation for different time zones. It's designed to be easy to use for displaying dates and times in the user's local time zone or any specified time zone from around the world.

## Features

- Convert timestamps to a formatted string in various time zones.
- Supports a wide range of time zones.
- Easy to integrate into any JavaScript project.

## Installation

You can include this module in your project by copying the `formatTimestamp` function into your codebase. There is no need for npm installation as this is a standalone function.

## Usage

To use the `formatTimestamp` function, simply import it into your JavaScript file and call it with the desired timestamp and time zone.

### Parameters

- `timestamp` (required): The timestamp you want to format. This should be in milliseconds.
- `timeZone` (optional): The IANA time zone identifier string of the desired time zone. Defaults to `'Asia/Shanghai'` if not specified.

### Example

```javascript
import { formatTimestamp } from './path/to/timeZoneFormatter';

const myTimestamp = Date.now(); // or any timestamp in milliseconds
const timeZone = 'America/New_York';

const formattedDate = formatTimestamp(myTimestamp, timeZone);
console.log(formattedDate); // Outputs the formatted date and time in the specified time zone
```

## Supported Time Zones

This function supports a variety of time zones, including but not limited to:

- UTC
- Europe/London
- Europe/Berlin
- Africa/Cairo
- Asia/Beirut
- Asia/Dubai
- Asia/Karachi
- Asia/Kolkata
- Asia/Jakarta
- Asia/Shanghai
- Asia/Tokyo
- Australia/Sydney
- Pacific/Auckland
- America/Anchorage
- America/Los_Angeles
- America/Denver
- America/Chicago
- America/New_York
- America/Caracas
- America/Sao_Paulo

For a complete list of supported time zones, refer to the `TIME_ZONES` array in the source code.

## License

This project is open-sourced under the MIT License. See the LICENSE file for more details.

## Contributing

Contributions to improve the function or extend the list of supported time zones are welcome. Please feel free to submit a pull request or open an issue.

---

This README provides a basic overview of the Time Zone Formatter module, including how to use it and the features it offers. Adjust the path in the import statement according to your project structure.
npm package: @moncircle/sdk
Description: Self-hosted MON loyalty reward infrastructure for e-commerce platforms. Supports SINGLE, MULTI, and HYBRID reward modes with Monad on-chain settlement.
Latest version: 1.2.0

# MON Loyalty API

A production-ready, multi-tenant loyalty infrastructure for e-commerce platforms.

## Core Features
- **Reward Isolation**: Isolated balances per platform and seller.
- **Flexible Modes**:
  - `SINGLE`: Unified rewards at the platform level.
  - `MULTI`: Isolated reward pools for different sellers.
  - `HYBRID`: Split rewards between platform and seller pools (70/30).
- **Stripe-Level API**: Secure API key authentication and clean REST endpoints.

## Tech Stack
- Node.js & Express
- TypeScript
- Prisma ORM (PostgreSQL)
- JWT-based Auth

## Getting Started

### 1. Install Dependencies
```bash
npm install
```

### 2. Configure Environment
Copy `.env.example` to `.env` and provide your `DATABASE_URL`.
```bash
cp .env.example .env
```

### 3. Database Migration
```bash
npx prisma migrate dev --name init
```

### 4. Run Development Server
```bash
npm run dev
```

## API Usage Example

### Create a Platform
```bash
POST /v1/platforms
{
  "name": "Stond Emporium",
  "mode": "HYBRID",
  "platformRewardRate": 0.0002
}
```

### Create a Seller (MULTI/HYBRID only)
**Header**: `Authorization: Bearer sk_xxxx`
```bash
POST /v1/sellers
{
  "name": "Nike Official",
  "rewardRate": 0.0005
}
```

### Record an Order
**Header**: `Authorization: Bearer sk_xxxx`
```bash
POST /v1/orders
{
  "platformId": "...",
  "sellerId": "...",
  "userId": "user_123",
  "amount": 5000,
  "orderId": "ord_001"
}
```

### Check Balance
```bash
GET /v1/users/user_123/balance?platformId=...&sellerId=...
```

## License
MIT