open-index/open-npm huggingface dataset:
npm package: @suseejs/plugin-banner-text
Description: Susee plugin for banner text
Author: Pho Thin Mg
Latest version: 0.2.0

<div align="center">
<img src="https://pub-d94f06e647584b8496cac0d43a6fecfb.r2.dev/susee/susee.webp" width="160" height="160" alt="susee" />
  <h1>plugin-banner-text</h1>
</div>

Susee plugin for banner text
npm package: @suseejs/plugin-terser
Description: A Susee plugin that minifies JavaScript code using the Terser library.
Author: Pho Thin Mg
Latest version: 1.0.32

<!-- markdownlint-disable MD033 -->
<!-- markdownlint-disable MD041 -->
<div align="center">
<img src="https://susee.phothin.dev/logo/susee.webp" width="160" height="160" alt="susee" />
  <h1>Susee Plugin Terser</h1>
</div>

A Susee plugin that minifies JavaScript code using the Terser library.

## Install

```bash
npm i -D @suseejs/plugin-terser
```

## Use

In your `susee.config.ts`

```ts
import type { SuSeeConfig } from "susee";
import suseeTerser from "@suseejs/plugin-terser";

const terserMinifyOptions = {
  toplevel: true,
};

export default {
  entryPoints: [
    {
      entry: "src/index.ts",
      format: "both",
      exportPath: ".",
    },
  ],
  plugins: [suseeTerser(terserMinifyOptions)],
} as SuSeeConfig;
```

**`terserMinifyOptions`** -> [See detail here](https://terser.org/docs/options/)
npm package: @suseejs/resolves
Description: Run a list of functions in series, concurrently, or allSettled.
Author: Pho Thin Mg
Latest version: 0.0.1

<!-- markdownlint-disable MD033 -->
<!-- markdownlint-disable MD041 -->
<div align="center">
<img src="https://susee.phothin.dev/logo/susee.webp" width="160" height="160" alt="susee" />
  <h1>Susee Resolves</h1>
</div>

The package lets you run a list of functions in series, concurrently, or using an allSettled pattern, returning an array of Promise-resolved results. It is useful for managing multiple asynchronous or synchronous tasks with different strategies.

## Features

- **Run functions in series (one after another)**
- **Run functions concurrently (all at once)**
- **Run functions with allSettled (wait for all to finish, regardless of success/failure)**

## Installation

```bash
npm i @suseejs/resolves
```

## Usage

### commonjs

```js
const resolves = require("@suseejs/resolves");

const asyncFunction = async (str) => {
  return await new Promise((resolve) => resolve(str));
};
const syncFunction = (str) => str;
const syncFunctionNum = (num) => num;

const rit = resolves([
  [asyncFunction, "Result 1"],
  [syncFunction, "Result 2"],
  [syncFunctionNum, 3],
]);

rit.series().then((res) => {
  console.log(`result-1 : ${res[0]}`); // result-1 : Result 1
  console.log(`result-2 : ${res[1]}`); // result-2 : Result 2
  console.log(`result-3 : ${res[2]}`); // result-3 : 3
});
```

### typescript

```ts
import resolves from "@suseejs/resolves";

const asyncFunction = async (str: string): Promise<string> => {
  return await new Promise((resolve) => resolve(str));
};
const syncFunction = (str: string): string => str;
const syncFunctionNum = (num: number): number => num;

const rit = resolves<[Promise<string>, string, number]>([
  [asyncFunction, "Result 1"],
  [syncFunction, "Result 2"],
  [syncFunctionNum, 3],
]);

const [a1, b1, c1] = await rit.series();
const [a2, b2, c2] = await rit.concurrent();
const [a3, b3, c3] = await rit.allSettled();
// Result 1 - Result 2  - 3
console.log(`${a1} - ${b1}  - ${c1}`);
console.log(`${a2} - ${b2}  - ${c2}`);
console.log(`${a3} - ${b3}  - ${c3}`);
```

## API

`resolves<R extends any[]>(params: { [K in keyof R]: Param<R[K]> },time?: number)`

parameters :

- An array of tuples : `[[(...args:any[])=>any,...args:any[]]]`
  The first place of tuple is function and rest are parameters of that function.

- Number of milliseconds(optional) : `time?:number` The amount of time to wait before resolving the promise. Defaults to 500ms.

returns :

An object with `series`, `concurrent`, and `allSettled` properties. Each property is a function that takes no arguments and returns a promise. The promise resolves with the results of running the functions in the specified manner.

## License

[Apache-2.0][file-license] © [Pho Thin Mg][ptm]

<!-- markdownlint-disable MD053 -->

[file-license]: LICENSE
[ptm]: https://github.com/phothinmg
npm package: @suseejs/tcolor
Description: Terminal color
Author: Pho Thin Mg
Latest version: 0.1.0

<div align="center">
<img src="https://pub-d94f06e647584b8496cac0d43a6fecfb.r2.dev/susee/susee.webp" width="160" height="160" alt="susee">
<h1>tcolor</h1>
</div>

Terminal color

## Use

### Installation

```bash
npm i @suseejs/tcolor
```
npm package: @suseejs/transformer
Description: TypeScript transformer function
Author: Pho Thin Mg
Latest version: 0.1.1

<div align="center">
<img src="https://github.com/suseejs/dependencies/blob/main/susee.png" width="160" height="160" alt="susee">
<h1>transformer</h1>
</div>

TypeScript transformer function.

## Use

### Installation

```bash
npm i -D @suseejs/transformer
```
npm package: @suseejs/tsconfig
Description: Get TypeScript compiler options and tsconfig file
Author: Pho Thin Mg
Latest version: 0.1.3

<!-- markdownlint-disable MD033 -->
<!-- markdownlint-disable MD041 -->
<div align="center">
<img src="https://susee.phothin.dev/logo/susee.webp" width="160" height="160" alt="susee" />
  <h1>Susee Tsconfig</h1>
</div>

Get TypeScript compiler options and tsconfig file

## Use

### Installation

```bash
npm i -D @suseejs/tsconfig
```
npm package: @suseejs/types
Description: Type definitions for suseejs
Author: Pho Thin Mg
Latest version: 0.2.2

<div align="center">
<img src="https://github.com/suseejs/dependencies/blob/main/susee.png" width="160" height="160" alt="susee">
<h1>types</h1>
</div>

Type definitions for suseejs

## Use

### Installation

```bash
npm i -D @suseejs/types
```
npm package: @suseejs/utils
Description: Utilities for suseejs
Author: Pho Thin Mg
Latest version: 0.1.6

<!-- markdownlint-disable MD033 -->
<!-- markdownlint-disable MD041 -->
<div align="center">
<img src="https://susee.phothin.dev/logo/susee.webp" width="160" height="160" alt="susee" />
  <h1>Susee Utilities</h1>
</div>

Utilities for suseejs

## Use

### Installation

```bash
npm i -D @suseejs/utils
```