open-index/open-npm huggingface dataset:
npm package: @oof2win2/promisify-event
Description: A package to help with event promisification and typed events
Author: oof2win2
Latest version: 1.0.1

# @oof2win2/promisify-event
A npm package to help with event promisification and typed events.

Usage of `promisifyEvent`:
```ts
import EventEmitter from "events"
import {promisifyEvent} from "@oof2win2/promisify-event"

class Example extends EventEmitter {
	emitFoo(x: number) {
		this.emit("foo", x)
	}
}

const run = async () => {
	const example = new Example()
	setTimeout(() => example.emitFoo(1), 100)
	// data will be [1], as 1 is the first argument of the event
	const data = await promisifyEvent(example, "foo")
}
run()
```

Usage of `typedEventEmitter`:
```ts
type EventTypes = {
	foo: (someNum: number) => void
}
class Example extends TypedEventEmitter<EventTypes> {
	emitFoo(someNum: number) {
		this.emit("foo", someNum)
	}
}
const run = async () => {
	const example = new Example()
	example.on("foo", (someNum) => console.log(someNum)) // someNum will be type of number, as it is declared in the types
	setTimeout(() => example.emitFoo(1), 100)
	// data will be [1], as 1 is the first argument of the event
	const data = await promisifyEvent(example, "foo")
}
run()
```
npm package: @oofdere/crabrave
Description: near-zero-cost abstractions ported from Rust to TypeScript
Author: Tibet Tornaci
Latest version: 1.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# crabrave

near-zero-cost abstractions ported from Rust to TypeScript

features:

- very simple API that closely follows Rust's
- rust style enums with packed data
- `Option<T>` and `Result<T>` types
- `match()`, and `unwrap()`
- about as performant as doing the comparisons by hand
- [very lightweight](https://pkg-size.dev/@oofdere%2Fcrabrave), you won't notice it's even there in prod
- works in all environments (browser, node, bun, deno)
- (soon) helpers to wrap existing functions
- (soon) wrappers over built-in web APIs and external libraries (a very simple and incomplete fetch wrapper is already included)

Check `/examples` and `/test` for code examples.

To install development dependencies:

```bash
bun install
```

To run:

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

To test:

```bash
bun test
```

## questions you might have

1. why is everything arrow functions?
   - smaller bundle size.
2. more fluent api? :pleading_face:
   - sorry, fluent APIs are not tree-shakable, and I can't add them until they are otherwise the bundle size will explode :( (ideally there would just be a macro system and then this whole thing becomes a zero-cost abstraction instead of an almost-zero-cost one)
3. but the bundle size is already so small! your competiton is an order of magnitude bigger!
   - I guess.
4. ~~why are there errors all over the code?~~
   - ~~because we're lying to typescript and it's not a very big fan of our dishonesty.~~
   - I managed to shut typescript up somehow
5. what is the performance impact?
   - not too bad probably since it's just one extra function call. if macros were a thing you could make it zero-cost, I'll try to experiment with that in the future probably with bun or vite.
6. ok but like, benchmark it.
   - there are too many factors to even consider doing this. (did you know that v8 uses four compilers? or that other engines exist?)
7. this is disgusting
   - that's not a question but yes it is

This project was created using `bun init` in bun v1.0.7. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @oofin008/santi_component_ui
Description: This is UI Components
Author: Santi Liwsakphaiboon
Latest version: 1.4.1

# Santi-Component-UI

[![npm version](https://img.shields.io/npm/v/@oofin008/santi_component_ui.svg?style=flat-square)](https://www.npmjs.com/package/@oofin008/santi_component_ui)
[![npm downloads](https://img.shields.io/npm/dm/@oofin008/santi_component_ui.svg?style=flat-square)](https://npm-stat.com/charts.html?package=@oofin008/santi_component_ui)

This project was my personal side project created for personal use.

## Table of Contents

- [Usage](#usage)
- [Components List](#components-list)
- [Contribute](#contribute)

## Usage

```js
import { COMPONENT } from '@oofin008/santi_component_ui';
```

## Components List
You can see all components category [here](https://santi-component-ui.web.app/) along with example code.
## Contribute

If you want to help me adding more awesome component, feel free to fork my project on [Github](https://github.com/oofin008/santi_component_ui) and pull request.

You can run following command for developing this project.

## Available Scripts for Development

In the project directory, you can run: 
#### `npm i`
Install package, you know that.

#### `npm run styleguide`

Start development server to see the component category.\
You can read [document](https://styled-components.com/docs) for more information.

#### `npm run build`

Builds the app for production to the `dist` folder.\

## License

[MIT](LICENSE)

## Deploy UI
`npm run build`
`firebase deploy`

## Deploy NPM package
`npm publish`