open-index/open-npm huggingface dataset:
npm package: @kleepier9/rn-android-usbserial
Description: Forked version of rn-android-usbserial with enhanced USB-CDC support and ESP32 auto-detection
Author: kleepier9
Latest version: 1.3.27

# rn-android-usbserial

#### This library is for USB serial port communication on Android platform.

### Documents

1. [Auto Connection](./docs/Auto-Connection.md)  
2. [Manual Connection](./docs/Manual-Connection.md)  
3. [Methods](./docs/Methods.md)  
4. [Error Descriptions](./docs/Errors.md)

### Use to write data to port

```javascript
RNSerialport.writeString("HELLO");
RNSerialport.writeBase64("SEVMTE8=");
RNSerialport.writeHexString("48454C4C4F");
```

### DEFAULT DEFINITIONS

| KEY                    | VALUE                                      |
|------------------------|--------------------------------------------|
| RETURNED DATA TYPE     | INT ARRAY (Options: INTARRAY, HEXSTRING)   |
| BAUD RATE              | 115200                                     |
| AUTO CONNECT BAUD RATE | 115200                                     |
| PORT INTERFACE         | -1                                         |
| DATA BIT               | 8                                          |
| STOP BIT               | 1                                          |
| PARITY                 | NONE                                       |
| FLOW CONTROL           | OFF                                        |
| DRIVER                 | AUTO                                       |

### Java Package Name

_com.kleepier9.rnandroidusbserial_

---

## 📦 NPM Package

This fork is now published on NPM:  
**[@kleepier9/rn-android-usbserial](https://www.npmjs.com/package/@kleepier9/rn-android-usbserial)**

Install it in your project:

```bash
npm install @kleepier9/rn-android-usbserial
```

---

## 🔁 Version Bumping & Publishing to NPM

When making changes to the library, follow these steps to publish a new version:

### 1. Bump the version

Update the `version` field in your `package.json`:

```json
{
  "version": "1.3.25"
}
```

### 2. Commit the change

```bash
git add package.json
git commit -m "chore: bump version to 1.3.25"
```

### 3. Tag the new version

```bash
git tag v1.3.25
```

### 4. Push the tag and commit

```bash
git push origin main
git push origin v1.3.25
```

> ⚠️ Replace `main` with `master` if your branch hasn't been renamed.

### 5. Publish to NPM

Make sure you're logged into your npm account:

```bash
npm login
```

Then publish:

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

After this, the updated version will be available via:

```bash
npm install @kleepier9/rn-android-usbserial@latest
```

---