open-index/open-npm huggingface dataset:
npm package: @siendoricardo/global
Description: corm
Latest version: 1.0.3

# @devslashrichie/global

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.1.27. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @siendoricardo/rustilities
Description: corm utilities
Latest version: 1.1.7

# Utilities

Package with different modules in charge of making your life as developer 
simpler.

## Installation

```bash
npm install @mymetaverse/utilities
```

In order to be able to execute the previous command, you need to be already
signed in into the private github repo.

For more information [here](https://www.notion.so/mymeta/MyMetaverse-Coding-Stanadrds-06c282502729464e99c8faf5b9a7bfe4)


## Simple Usage

For using `Result` you can do the following:

```typescript
import { Ok, Err, Result } from "@mymetaverse/utilities";

const exampleOne: Result<string, Error> = Ok("Hello World");

const exampleTwo: Result<string, Error> = Err(new Error("Something went wrong"));

```

There are additional utilities in case you need more complex usage such as:

```typescript

const fromThrow = Result.fromThrow(() => {
    throw new Error("Something went wrong");
});

const fromAsyncThrow = await Result.fromAsyncThrow(async () => {
    throw new Error("Something went wrong");
});

```

For using `Option` you can do the following:

```typescript
import { Some, None, Option } from "@mymetaverse/utilities";

const exampleOne: Option<string> = Some("Hello World");

const exampleTwo: Option<string> = None;

const fromNullable = Option.fromNullable(null);

```

There's an additional package called `Exception` which is a wrapper for creating
cleaner errors.

This wrapper can be used without to much context our you can extend class 
as follows:

```typescript

import { Exception, None } from "@mymetaverse/utilities";

class NewException extends Exception {
    constructor(message: string) {
        // it takes a message and if there's a parentt error.
        super(message, None);
    }
}

```

To use the simpler way:

```typescript
// takes the same as the super example (string and parent);
const myError = Exception.create("The message", None);

```
npm package: @sientech/mono-utils
Description: sientech utils functions
Latest version: 1.0.3

# mono-utils

## Time

- `plusZero` : 十位數補零: 1 -> 01
- `minutesToTimeFormat` : 分鐘數轉換為 HH:MM (小時:分鐘)
- `timeFormatToMinutes` : HH:MM (小時:分鐘) 轉為分鐘數
- `generatePeriods` : 生成時段陣列 string[HH:mm]

## Date

- `isValidDate` : 檢查是否為合法日期
- `formatDate` : 格式化日期，預設 YYYY/MM/DD HH:mm
- `weekDayChinese` : 整數轉成中文星期幾 0 : 星期日, 1 : 星期一, 2 : 星期二 ...

## Object

- `isObject` : 是否為 Object

## String

- `ellipsisText` : 省略文字