open-index/open-npm huggingface dataset:
npm package: @iingles/3780-npm-package
Description: NPM package assignment for dgm3780 at Utah Valley University
Author: Isaac Ingles
Latest version: 1.0.0

# DGM 3780 NPM Package assignment
### Isaac Ingles

For this assignment, I simply copied several functions from earlier assignments:
---

1.  Compare
    
    Accepts 2 valid dates and returns the difference between them as a number of days

    usage: `compare(date1, date2)`

2. Revstr

    Reverses a string

    usage: `revstr(inString)`

3. Underscore

    Replaces all spaces in a string with underscores

    usage: `underscore(inString)`

4. HexCode

    Returns random hex color code

    usage: `const color = hexCode()`

5. Append

    Appends an item to an array

    usage: `append(array, item)`
npm package: @iinstall/react-native-iinstall
Description: React Native SDK for iinstall
Latest version: 0.1.2

# @iinstall/react-native-iinstall

React Native SDK client for iinstall backend contract v1.

## Install

```bash
npm install @iinstall/react-native-iinstall
```

## API coverage

- `POST /api/sdk/init`
- `POST /api/sdk/issue`

## Usage

```ts
import { IInstallClient, IInstallIssueQueue } from '@iinstall/react-native-iinstall';

const client = new IInstallClient({
  apiBaseUrl: 'https://iinstall.app',
  apiKey: 'project_api_key',
});

const init = await client.initDevice({
  platform: 'ios',
  model: 'iPhone 15',
  osVersion: '18.0',
});

await client.submitIssue({
  title: 'Login button not responding',
  description: 'Happens after opening app from push.',
  priority: 'HIGH',
  metadata: { screen: 'Login', appVersion: '1.4.2' },
});

const queue = new IInstallIssueQueue(client);
await queue.enqueue({ description: 'Offline report draft' });
await queue.flush();
```

## Notes

- For persistent queueing, implement `QueueStore` with AsyncStorage.
- Attachments are sent as multipart files under `screenshot`, `audio`, and `video`.