open-index/open-npm huggingface dataset:
npm package: @ohjelmistokehitys/calendar-converter
Description: Utility for converting a json calendar to ical format
Latest version: 1.0.2

# Calendar converter

A simple npm package for converting calendars between different formats. The project is not meant to be used in production, but rather as an example of how to split code into modules and how to create packages on Haaga-Helia programming courses.

You can find the published package on https://www.npmjs.com/package/@ohjelmistokehitys/calendar-converter and the source code on https://github.com/ohjelmistokehitys/calendar-converter.


## Source code

The best way to understand the contents of the package is to take a look at the `converter.ts` file, which contains the "production code", as well as the `converter.test.ts` file, which contains unit tests.


## How to use this package

You can install this package in your project with:

```bash
npm install @ohjelmistokehitys/calendar-converter
```

Then, you can use the package in your code like this:

```ts
import convertToICalendar from '@ohjelmistokehitys/calendar-converter';

// ... testCalendar is an object of type Calendar (see type declarations)
const iCal: string = convertToICalendar(testCalendar);
```

## How to build this package

As this package is written in TypeScript, you need to compile it to JavaScript before you can use it. The compiled JS files will be generated in the `dist` folder, which is included in the package with the `files` field in `package.json`. Test files are excluded from compilation and therefore from the package with the `tsconfig.json` file.

```bash
# Install dependencies
npm install

# Run tests
npm test

# Compile the JavaScript files
npm run build

# Create the package (for local testing)
npm pack
```

Finally, when you have tested the package locally and verified that it only contains the files you want, you can publish it to npm with:

```bash
npm publish --access public
```

Publishing the package requires an npm account and that you are logged in with the cli tool. You also need permissions to publish the package with the given name, so you might want to change the package name in `package.json` to something unique to you.
npm package: @ohjelmistokehitys/time-tools
Description: Tools for time related operations
Latest version: 4.0.1

# Time related tools

This package contains tools for time related operations, such as converting times between formats and timezones. The project is not meant to be used in production, but rather as an example of how to create packages on Haaga-Helia programming courses.

You can find the published package on https://www.npmjs.com/package/@ohjelmistokehitys/time-tools and the source code on https://github.com/ohjelmistokehitys/time-tools.


## Source code

The best way to understand the contents of the package is to take a look at the `tools.ts` file, which contains the "production code", as well as the `tools.test.ts` file, which contains unit tests.

## How to use this package

You can install this package in your project with:

```bash
npm install @ohjelmistokehitys/time-tools
```

Then, you can use the package in your code like this:

```ts
import { parseHelsinkiTime } from '@ohjelmistokehitys/time-tools';

// parses a non-standard date string in Helsinki timezone
// and returns a Date object with timezone information
const date = parseHelsinkiTime("2027-05-15 09:10");

console.log(date.toISOString()); // 2027-05-15T06:10:00.000Z
```

## How to build this package

As this package is written in TypeScript, you need to compile it to JavaScript before you can use it. The compiled JS files will be generated in the `dist` folder, which is included in the package with the `files` field in `package.json`. Test files are excluded from compilation and therefore from the package with the `tsconfig.json` file.

```bash
# Install dependencies
npm install

# Run tests
npm test

# Compile the JavaScript files
npx tsc

# Create the package (for local testing)
npm pack
```

Finally, when you have tested the package locally and verified that it only contains the files you want, you can publish it to npm with:

```bash
npm publish --access public
```

Publishing the package requires an npm account and that you are logged in with the cli tool. You also need permissions to publish the package with the given name, so you might want to change the package name in `package.json` to something unique to you.
npm package: @ohk/react-template
Description: Minimal React project startups.
Author: Ohk Soe Htet
Latest version: 1.3.0

# Minimal React Templates

A collection of minimal and easy-to-use templates to kickstart your next React project. Get up and running in seconds with a clean, lightweight starting point.

## Usage

To create a new project, simply run the following command. You will be asked for the project name and template interactively.

```bash
npx @ohk/react-template
```

### Direct Usage (Optional)

You can also specify the project name and template directly via arguments:

```bash
# Example: Create a project named "my-app" using the TypeScript + Tailwind + Shadcn template
npx @ohk/react-template my-app --ts tw-shadcn
```

## Available Templates

### JavaScript

-   `vanilla`: Basic Vite + React setup.

### TypeScript

-   `vanilla`: Basic Vite + React + TypeScript setup.
-   `tw`: TypeScript setup with Tailwind CSS configured.
-   `tw-shadcn`: TypeScript setup with Tailwind CSS and Shadcn UI (inc. `utils` and basic components).

## Contributing

Contributions are welcome. Please feel free to open a pull request or an issue if you have suggestions or find a bug. The templates are regularly updated to use the latest stable package versions.
npm package: @ohk8/realtime
Description: A high-precision real-time library for frontend applications using Rust and WASM.
Latest version: 0.1.1

# Real-time Library (Rust/WASM)

A high-precision real-time library built with Rust and WebAssembly, designed for frontend applications that demand accuracy and consistent memory performance.

## Features

- **High Precision**: Leverages Rust's robust timing and math capabilities.
- **Memory Efficient**: No Garbage Collection (GC) pauses within the core engine.
- **Flexible Formatting**: Supports short/long weekdays, ISO 8601, and custom strftime-like patterns.
- **Timezone Support**: Retrieve user timezone name and UTC offset directly from the environment.

## Installation

### For Frontend (NPM)

If you have built the package using `wasm-pack`, you can install it locally or via NPM:

```bash
npm install ./pkg # Local installation
# OR
npm install @ohk8/realtime # After publishing to NPM
```

## Usage (JavaScript/TypeScript)

```javascript
import init, { RealTimeEngine } from '@ohk8/realtime';

async function start() {
    // Initialize the WASM module
    await init();

    const engine = new RealTimeEngine();

    // 1. Get current time
    console.log(engine.get_local_time_string()); // "2026-01-16 18:53:16.123"

    // 2. Formatting options
    console.log(engine.get_weekday(true));       // "Fri"
    console.log(engine.get_weekday(false));      // "Friday"
    console.log(engine.get_date_string());       // "2026-01-16"

    // 3. Custom patterns
    console.log(engine.format_custom("%a %b %e %H:%M %p")); // "Fri Jan 16 18:53 PM"

    // 4. Timezone info
    console.log(engine.get_timezone_name());     // "Asia/Seoul"
    console.log(engine.get_timezone_offset());   // -540 (minutes)
}

start();
```

## Publishing

### To NPM (via wasm-pack)

1. **Build for Web**:
   ```bash
   wasm-pack build --target web
   ```
2. **Login to NPM**:
   ```bash
   npm login
   ```
3. **Publish**:
   ```bash
   wasm-pack publish
   ```

## License
MIT