open-index/open-npm huggingface dataset:
npm package: @iota/pearl-diver-react-native
Description: Transaction nonce searcher for IOTA apps built with react-native.
Author: Chris Dukakis
Latest version: 1.0.0-beta.30


# @iota/pearl-diver-react-native

IOTA transaction nonce searcher for react native apps.

## Installation

`npm install @iota/pearl-diver-react-native`

### Automatic linking:
`react-native link @iota/pearl-diver-react-native`

---

## Usage
```js
import { composeAPI } from '@iota/core'
import { attachToTangle } from '@iota/pearl-diver-react-native';

const iota = composeAPI({ 
    provider: 'http://...',
    attachToTangle
})

const seed = 'SOME9GOOD9RANDOM9SEED...'
const transfers = [{
    address: '9'.repeat(81),
    value: 0
}]

const depth = 3
const minWeightMagnitude = 14

iota.prepareTransfers(seed, transfers)
    .then(trytes => iota.sendTrytes(trytes, depth, minWeightMagnitude))

```

---

### Manual installation

#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `@iota/pearl-diver-react-native` and add `PearlDiver.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libPearlDiver.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import org.iota.PearlDiver.PearlDiverPackage;` to the imports at the top of the file
  - Add `new PearlDiverPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':@iota/pearl-diver-react-native'
  	project(':@iota/pearl-diver-react-native').projectDir = new File(rootProject.projectDir, 	'../node_modules/@iota/pearl-diver-react-native/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':@iota/pearl-diver-react-native')
  	```
npm package: @iota/persistence-adapter-level
Description: Level persistence adapter, with support for different store types.
Author: Chris Dukakis
Latest version: 1.0.0-beta.30

# @iota/persistence-adapater-level

Persistence adapter with support for different [**`abstract-level`**](https://github.com/Level/abstract-leveldown) stores, such as
[**`leveldown`**](https://github.com/Level/leveldown) (recommended default), [`leveljs`](https://github.com/Level/level-js), [`memdown`](https://github.com/Level/memdown) and [others...](https://github.com/Level/awesome/#stores)

## Example with `@iota/persistence`
```JS
import { persistence, persistenceID } from '@iota/persistence'
import { persistenceAdapter } from '@iota/persistence-adapter-level'
import leveldown from 'leveldown'

;(async function (seed) {
    const persistenceAdapter = createPersistenceAdapter({
        persistenceID: persistenceID(seed),
        persistencePath: './test/temp', // test directory
        store: leveldown, // default store
    })

    try {
        const { nextIndex } = createPersistence(persistenceAdapter)

        return await nextIndex()
    } catch (error) {
        return error
    }
})('SOME9SEED')
```
npm package: @iota/streams
Description: WASM binding for the IOTA streams library
Latest version: 1.2.1

# IOTA streams WASM

## Setup for development

```bash
git clone https://github.com/iotaledger/streams
cd streams/bindings/wasm
npm install
```

## Browser example

```bash
npm run serve
```

Go to http://localhost:8080 and open your browser console to see the logs!

## NodeJS only example:

```bash
npm run build:nodejs
```

```bash
npm run example:nodejs
```

## Generate docs
```bash
npm run doc:nodejs
```

The generated docs are available in `node/jsdocs/index.html`