open-index/open-npm huggingface dataset:
npm package: @matii96/nx-tsc
Description: tsc executor for nx
Author: Matii96
Latest version: 1.1.0

# Nx-tsc

<div align="center">

[![MIT Licensed](https://img.shields.io/badge/License-MIT-brightgreen)](/LICENSE) ![ci](https://github.com/Matii96/nx-tsc/workflows/Release/badge.svg)

[Typescript](https://www.typescriptlang.org) executor for [Nx workspace](https://nx.dev).

</div>

## Why?

Nx only allows to use webpack as ts builder. While it has benefits like slightly reduced bundle size, it makes using build-reliant libraries like [MikroORM](https://mikro-orm.io) a pain to use as it prevents distribution directory exploration.

## How?

Nx-tsc eliminates this problem by introducing a full-fledged tsc build keeping hot-reload (serve) option.

## Installation

```bash
$ npm i --save-dev @matii96/nx-tsc
```

## Example

App's project.json:

```json
{
  "root": "apps/my-app",
  "sourceRoot": "apps/my-app/src",
  "projectType": "application",
  "targets": {
    "build": {
      "executor": "@matii96/nx-tsc:build",
      "options": {
        "main": "apps/my-app/src/main.js",
        "tsConfig": "apps/my-app/tsconfig.app.json",
        "assets": ["apps/my-app/src/assets"]
      },
      "configurations": {
        "production": {
          "optimization": true,
          "extractLicenses": true,
          "inspect": false,
          "fileReplacements": [
            {
              "replace": "apps/my-app/src/environments/environment.ts",
              "with": "apps/my-app/src/environments/environment.prod.ts"
            }
          ]
        }
      }
    },
    "..."
  },
  "tags": []
}
```

App's tsconfig.app.json:

```json
{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "../../dist/out-tsc/my-app",
    "..."
  },
  "..."
}
```

Nothing changes in serve and build commands:

```bash
$ nx serve my-app
$ nx build my-app
```

## Options

| Property       | What it does                                           | Required |
| -------------- | ------------------------------------------------------ | -------- |
| `main`         | The name of the main entry-point file                  | &check;  |
| `tsConfig`     | The name of the Typescript configuration file          | &check;  |
| `assets`       | List of static application assets                      | &check;  |
| `watch`        | Run build when files change                            |          |
| `debounceTime` | Debounce timeout after last file change for watch mode |          |

## License

Nx-tsc is [MIT licensed](LICENSE).
npm package: @matijaoe/utils
Description: To install dependencies:
Author: Matija Osrečki
Latest version: 0.1.7

# matijaoe-utils

To install dependencies:

```bash
bun install
```

To run:

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

This project was created using `bun init` in bun v1.0.14. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
npm package: @matiks/rn-keyboard
Description: rn-keyboard
Author: Marc Rousavy
Latest version: 1.0.1

# react-native-nitro-template

This is a template for Nitro Modules.

## Usage

Clone this repo, and change all `$$*$$` names according to your `nitro.json` file.

## Contributing

Contribute a change to this template to update it for newer React Native versions.

## Structure

- [`android/`](android): All your `android`-specific implementations.
  - [`build.gradle`](android/build.gradle): The gradle build file. This contains four important pieces:
    1. Standard react-native library boilerplate code
    2. Configures Kotlin (`apply plugin: 'org.jetbrains.kotlin.android'`)
    3. Adds all Nitrogen files (`apply from: '.../NitroRnKeyboard+autolinking.gradle'`)
    4. Triggers the native C++ build (via CMake/`externalNativeBuild`)
  - [`CMakeLists.txt`](android/CMakeLists.txt): The CMake build file to build C++ code. This contains four important pieces:
    1. Creates a library called `NitroRnKeyboard` (same as in `nitro.json`)
    2. Adds all Nitrogen files (`include(.../NitroRnKeyboard+autolinking.cmake)`)
    3. Adds all custom C++ files (only `HybridTestObjectCpp.cpp`)
    4. Adds a `cpp-adapter.cpp` file, which autolinks all C++ HybridObjects (only `HybridTestObjectCpp`)
  - [`src/main/java/com/margelo/nitro/rnkeyboard/`](android/src/main/java/com/margelo/nitro/rnkeyboard/): All Kotlin implementations.
    - [`NitroRnKeyboardPackage.kt`](android/src/main/java/com/margelo/nitro/rnkeyboard/NitroRnKeyboardPackage.kt): The react-native package. You need this because the react-native CLI only adds libraries if they have a `*Package.kt` file. In here, you can autolink all Kotlin HybridObjects.
- [`cpp/`](cpp): All your cross-platform implementations. (only `HybridTestObjectCpp.cpp`)
- [`ios/`](ios): All your iOS-specific implementations.
- [`nitrogen/`](nitrogen): All files generated by nitrogen. You should commit this folder to git.
- [`src/`](src): The TypeScript codebase. This defines all HybridObjects and loads them at runtime.
  - [`specs/`](src/specs): All HybridObject types. Nitrogen will run on all `*.nitro.ts` files.
- [`nitro.json`](nitro.json): The configuration file for nitrogen. This will define all native namespaces, as well as the library name.
- [`NitroRnKeyboard.podspec`](NitroRnKeyboard.podspec): The iOS podspec build file to build the iOS code. This contains three important pieces:
  1. Specifies the Pod's name. This must be identical to the name specified in `nitro.json`.
  2. Adds all of your `.swift` or `.cpp` files (implementations).
  3. Adds all Nitrogen files (`add_nitrogen_files(s)`)
- [`package.json`](package.json): The npm package.json file. `react-native-nitro-modules` should be a `peerDependency`.
npm package: @matiks/rn-stroke-text
Description: rn-stroke-text
Author: Marc Rousavy
Latest version: 0.2.0

# react-native-nitro-template

This is a template for Nitro Modules.

## Usage

Clone this repo, and change all `$$*$$` names according to your `nitro.json` file.

## Contributing

Contribute a change to this template to update it for newer React Native versions.

## Structure

- [`android/`](android): All your `android`-specific implementations.
  - [`build.gradle`](android/build.gradle): The gradle build file. This contains four important pieces:
    1. Standard react-native library boilerplate code
    2. Configures Kotlin (`apply plugin: 'org.jetbrains.kotlin.android'`)
    3. Adds all Nitrogen files (`apply from: '.../NitroRnStrokeText+autolinking.gradle'`)
    4. Triggers the native C++ build (via CMake/`externalNativeBuild`)
  - [`CMakeLists.txt`](android/CMakeLists.txt): The CMake build file to build C++ code. This contains four important pieces:
    1. Creates a library called `NitroRnStrokeText` (same as in `nitro.json`)
    2. Adds all Nitrogen files (`include(.../NitroRnStrokeText+autolinking.cmake)`)
    3. Adds all custom C++ files (only `HybridTestObjectCpp.cpp`)
    4. Adds a `cpp-adapter.cpp` file, which autolinks all C++ HybridObjects (only `HybridTestObjectCpp`)
  - [`src/main/java/com/margelo/nitro/rnstroketext/`](android/src/main/java/com/margelo/nitro/rnstroketext/): All Kotlin implementations.
    - [`NitroRnStrokeTextPackage.kt`](android/src/main/java/com/margelo/nitro/rnstroketext/NitroRnStrokeTextPackage.kt): The react-native package. You need this because the react-native CLI only adds libraries if they have a `*Package.kt` file. In here, you can autolink all Kotlin HybridObjects.
- [`cpp/`](cpp): All your cross-platform implementations. (only `HybridTestObjectCpp.cpp`)
- [`ios/`](ios): All your iOS-specific implementations.
- [`nitrogen/`](nitrogen): All files generated by nitrogen. You should commit this folder to git.
- [`src/`](src): The TypeScript codebase. This defines all HybridObjects and loads them at runtime.
  - [`specs/`](src/specs): All HybridObject types. Nitrogen will run on all `*.nitro.ts` files.
- [`nitro.json`](nitro.json): The configuration file for nitrogen. This will define all native namespaces, as well as the library name.
- [`NitroRnStrokeText.podspec`](NitroRnStrokeText.podspec): The iOS podspec build file to build the iOS code. This contains three important pieces:
  1. Specifies the Pod's name. This must be identical to the name specified in `nitro.json`.
  2. Adds all of your `.swift` or `.cpp` files (implementations).
  3. Adds all Nitrogen files (`add_nitrogen_files(s)`)
- [`package.json`](package.json): The npm package.json file. `react-native-nitro-modules` should be a `peerDependency`.
npm package: @matinkaviani/react-use-async-hooks
Description: A lightweight library for managing async operations in React.
Author: matinkaviani mhp5454@gmail.com
Latest version: 1.0.0

# React Async Hooks

![npm](https://img.shields.io/npm/v/react-async-hooks?color=%230076d6&label=npm&style=for-the-badge)
![license](https://img.shields.io/github/license/matinkaviani/react-async-hooks?color=%23FFD700&style=for-the-badge)
![build](https://img.shields.io/github/actions/workflow/status/matinkaviani/react-async-hooks/build.yml?style=for-the-badge)

A lightweight and powerful library for managing asynchronous logic in React.

With React Async Hooks, you can effortlessly handle fetches, mutations, caching, and even auto-generate TypeScript types from API responses!

---

## ✨ Features

- 🪄 **Fetch Made Simple**: Handle API calls seamlessly with `useFetch`.
- 🔄 **Flexible Async Logic**: Use `useAsync` for any promise-based logic.
- ⚡ **TypeScript Support**: Auto-generate TypeScript types from API responses.
- 🔁 **Polling**: Keep your data fresh with `usePolling`.
- 🚀 **Zero Dependencies**: Built with pure React and TypeScript.

---

## 📦 Installation

```bash
npm install @matinkaviani/react-use-async-hooks
```
npm package: @matinzd/react-native-audio-streamer
Description: A react-native audio streaming module which works on both iOS & Android
Author: IndieCast.fm
Latest version: 1.0.4

# react-native-audio-streamer

A react-native audio streaming module which works on both iOS & Android

iOS streaming is based on [DOUAudioStreamer](https://github.com/douban/DOUAudioStreamer)

Android streaming is based on [ExoPlayer](https://github.com/google/ExoPlayer)

Updated Version of [ReactNativeAudioStreamer](https://github.com/indiecastfm/react-native-audio-streamer)

## Installation

`yarn add @matinzd/react-native-audio-streamer`

## React Native 0.59.10 and below
Then run the following command to link to iOS & Android project

`react-native link @matinzd/react-native-audio-streamer`

## Usage

### Basic

```javascript
import RNAudioStreamer from '@matinzd/react-native-audio-streamer';

RNAudioStreamer.setUrl('http://lacavewebradio.chickenkiller.com:8000/stream.mp3')
RNAudioStreamer.play()
RNAudioStreamer.pause()
RNAudioStreamer.seekToTime(16) //seconds
RNAudioStreamer.duration((err, duration)=>{
 if(!err) console.log(duration) //seconds
})
RNAudioStreamer.currentTime((err, currentTime)=>{
 if(!err) console.log(currentTime) //seconds
})

// Player Status:
// - PLAYING
// - PAUSED
// - STOPPED
// - FINISHED
// - BUFFERING
// - ERROR
RNAudioStreamer.status((err, status)=>{
 if(!err) console.log(status)
})

```

### Status Change Observer

```javascript
const {
  DeviceEventEmitter
} = 'react-native'

// Status change observer
componentDidMount() {
    this.subscription = DeviceEventEmitter.addListener('RNAudioStreamerStatusChanged',this._statusChanged.bind(this))
}

// Player Status:
// - PLAYING
// - PAUSED
// - STOPPED
// - FINISHED
// - BUFFERING
// - ERROR
_statusChanged(status) {
  // Your logic
}
```