open-index/open-npm huggingface dataset:
npm package: @orbitalswap/sdk
Description: 🛠 An SDK for building applications on top of Orbitalswap.
Latest version: 1.1.9

# Orbitalswap SDK

Forked from the [Pancakeswap SDK](https://github.com/pancakeswap/pancake-swap-sdk).


## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/orbitalswap/orbitalswap-sdk.git
```

Move into the orbitalswap-sdk working directory

```sh
cd orbitalswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @orbitbot-forks/tiny-date-picker
Description: A small, dependency-free date picker
Author: Chris Davies
Latest version: 3.3.1

# Tiny Date Picker

A light-weight date picker with zero dependencies.

- Zero dependencies
- Roughly 3.5KB minified and gzipped
- IE9+
- Mobile-friendly/responsive
- Supports multiple languages
- [TinyDatePicker demo](https://chrisdavies.github.io/tiny-date-picker/)

## Installation

    npm install --save tiny-date-picker

## Usage

Include a reference to `tiny-date-picker.css` and `tiny-date-picker.js`, or import
it `import TinyDatePicker from 'tiny-date-picker';` then call it like this:

```javascript
// Initialize a date picker on the specified input element
TinyDatePicker(document.querySelector('input'));

// Or with a CSS selector
TinyDatePicker('.some-class-or-id-or-whatever');
```

## Documentation

- [TinyDatePicker documentation](./docs/tiny-date-picker.md)
- [DateRangePicker documentation](./docs/date-range-picker.md)

## License MIT

Copyright (c) 2015 Chris Davies

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
npm package: @orbitdb/eslint-config-orbitdb
Description: eslint configuration for orbitdb
Author: Thiago Delgado
Latest version: 0.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# eslint-config-orbitdb

The eslint configuration used for orbit-db projects

## Usage

Our default export contains all of our ESLint rules.

**Requirements**

* `eslint-plugin-import`
* `eslint-plugin-standard`
* `eslint-plugin-promise`
* `eslint-plugin-node`
* `eslint-config-standard`
* `eslint`

If you use yarn, run `npm info "eslint-config-orbitdb@latest" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev <dependency>@<version>` for each listed peer dependency. See below for npm instructions.

1. Install the correct versions of each package, which are listed by the command:

  ```sh
  npm info "eslint-config-orbitdb@latest" peerDependencies
  ```

  Linux/OSX users can run

  ```sh
  (
    export PKG=eslint-config-orbitdb;
    npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev "$PKG@latest"
  )
  ```


2. Add `"extends": "eslint-config-orbitdb"` to your .eslintrc
npm package: @orbitdb/example-orbitdb-webpack
Description: How to use OrbitDB JavaScript module with Webpack
Author: Haad
Latest version: 0.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# Example OrbitDB Webpack

[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/orbitdb/Lobby) [![Matrix](https://img.shields.io/badge/matrix-%23orbitdb%3Apermaweb.io-blue.svg)](https://riot.permaweb.io/#/room/#orbitdb:permaweb.io) [![Discord](https://img.shields.io/discord/475789330380488707?color=blueviolet&label=discord)](https://discord.gg/cscuf5T)
[![npm version](https://badge.fury.io/js/%40orbitdb%2Fexample-orbitdb-webpack.svg)](https://badge.fury.io/js/%40orbitdb%2Fexample-orbitdb-webpack)

> How to use OrbitDB JavaScript module with Webpack

This example shows how to use [OrbitDB](https://github.com/orbitdb/orbit-db) in a JavaScript program that targets browsers and is compiled with webpack.

## Install

This project uses [npm](https://www.npmjs.com/) and [node](https://nodejs.org/en/).

```sh
$ git clone https://github.com/haadcode/example-orbitdb-webpack
$ cd example-orbitdb-webpack/
$ npm install
```

## Usage

```sh
open index.html
```

## Information

[How to require](https://github.com/haadcode/example-orbitdb-webpack/blob/master/src/index.js) [orbit-db](https://www.npmjs.com/package/orbit-db) as a module

[Minimal required Webpack configuration](https://github.com/haadcode/example-orbitdb-webpack/blob/master/webpack.config.js) for [orbit-db](https://www.npmjs.com/package/orbit-db)

## Contributing

If you think this could be better, please [open an issue](https://github.com/orbitdb/orbitdb-webpack/issues/new)! You can also reach us [on Gitter](https://gitter.im/orbitdb/Lobby),

Please note that all interactions in [@OrbitDB](https://github.com/orbitdb) fall under our [Code of Conduct](CODE_OF_CONDUCT.md).

## License

[MIT](LICENSE) © 2017-2019 Haja Networks Oy
npm package: @orbitdb/simple-encryption
Description: A simple password encryption module that encrypts data using AES-GCM PBKDF2.
Author: OrbitDB
Latest version: 0.0.2

# OrbitDB Simple Encryption

<p align="left">
  <img src="https://github.com/orbitdb/orbitdb/blob/main/images/orbit_db_logo_color.png" width="256" />
</p>

[![Matrix](https://img.shields.io/matrix/orbit-db:matrix.org?label=chat%20on%20matrix)](https://app.element.io/#/room/#orbit-db:matrix.org) [![npm (scoped)](https://img.shields.io/npm/v/%40orbitdb/simple-encryption)](https://www.npmjs.com/package/%40orbitdb/simple-encryption) [![node-current (scoped)](https://img.shields.io/node/v/%40orbitdb/simple-encryption)](https://www.npmjs.com/package/@orbitdb/simple-encryption)

A simple password encryption module that encrypts data using AES-GCM PBKDF2.

**NOTE** This encryption module is not audited in any way for security and is intended for demonstration purposes only.

## Install

This project uses [npm](http://npmjs.com/) and [nodejs](https://nodejs.org/).

```sh
npm i @orbitdb/simple-encryption
```

## Usage

To implement encryption within your database, create an encryption object and pass it to OrbitDB's `open` function:

```js
import { createOrbitDB } from '@orbitdb/core'
import { SimpleEncryption } from '@orbitdb/simple-encryption'


// Instantiate encryption for either data, replication or both.
const replication = await SimpleEncryption({ password: 'hello' })
const data = await SimpleEncryption({ password: 'world' })

const encryption = { data, replication }

// Set up OrbitDB. See https://github.com/orbitdb/orbitdb/blob/main/docs/GETTING_STARTED.md for more information if you are unfamiliar with OrbitDB.
const db = await orbitdb.open('db-encrypted', { encryption })
```

When replicating a database, initiate the same encryption configuration and pass it to `open`:

```js
import { createOrbitDB } from '@orbitdb/core'
import { SimpleEncryption } from '@orbitdb/simple-encryption' 


// Instantiate encryption for either data, replication or both.
const replication = await SimpleEncryption({ password: 'hello' })
const data = await SimpleEncryption({ password: 'world' })

const encryption = { data, replication }

const dbAddress = '0x0' // the address of the remote database. 

// Set up OrbitDB. See https://github.com/orbitdb/orbitdb/blob/main/docs/GETTING_STARTED.md for more information if you are unfamiliar with OrbitDB.
const db = await orbitdb.open(dbAddress, { encryption })

```

## Contributing

**Take a look at our organization-wide [Contributing Guide](https://github.com/orbitdb/welcome/blob/master/contributing.md).** You'll find most of your questions answered there. Some questions may be answered in the [FAQ](FAQ.md), as well.

If you want to code but don't know where to start, check out the issues labelled ["help wanted"](https://github.com/orbitdb/orbitdb/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+sort%3Areactions-%2B1-desc).

## License

[MIT](LICENSE) OrbitDB Community
npm package: @orbitdb/test-utils
Description: Utility functions for testing OrbitDB
Author: Haadcode
Latest version: 0.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# orbitdb-test-utils

[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/orbitdb/Lobby)
[![npm version](https://badge.fury.io/js/orbitdb-test-utils.svg)](https://www.npmjs.com/package/orbitdb-test-utils)
[![node](https://img.shields.io/node/v/orbitdb-test-utils.svg)](https://www.npmjs.com/package/orbitdb-test-utils)

> Utility functions for testing OrbitDB

This module provides common and shared utility functions for tests in [OrbitDB](https://github.com/orbitdb/orbit-db) and its modules.

## Table of Contents

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Install](#install)
- [Usage](#usage)
  - [defaultIpfsConfig](#defaultipfsconfig)
  - [testAPIs](#testapis)
  - [startIpfs](#startipfs)
  - [stopIpfs](#stopipfs)
  - [waitForPeers](#waitforpeers)
  - [connectPeers](#connectpeers)
  - [MemStore](#memstore)
  - [CustomTestKeystore](#customtestkeystore)
- [Contribute](#contribute)
- [License](#license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Install

This project uses [npm](http://npmjs.com/) and [nodejs](https://nodejs.org/).

```sh
npm i orbitdb-test-utils
```

## Usage

_This package could use more documentation. Here are the current methods. For now, refer to the code in the `src` folder for the relevant functions._

### defaultIpfsConfig
### testAPIs
### startIpfs
### stopIpfs
### waitForPeers
### connectPeers
### MemStore
### CustomTestKeystore

## Contribute

We would be happy to accept PRs! If you want to work on something, it'd be good to talk beforehand to make sure nobody else is working on it. You can reach us on [Gitter](https://gitter.im/orbitdb/Lobby), or in the comments of the [issues section](https://github.com/orbitdb/orbitdb-test-utils/issues).

We also have **regular community calls**, which we announce in the issues in [the @orbitdb welcome repository](https://github.com/orbitdb/welcome/issues). Join us!

If you want to code but don't know where to start, check out the issues labelled ["help wanted"](https://github.com/orbitdb/orbitdb-test-utils/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+sort%3Areactions-%2B1-desc).

For specific guidelines for contributing to this repository, check out the [Contributing guide](CONTRIBUTING.md). For more on contributing to OrbitDB in general, take a look at the [orbitdb welcome repository](https://github.com/orbitdb/welcome). Please note that all interactions in @orbitdb fall under our [Code of Conduct](CODE_OF_CONDUCT.md).

## License

[MIT](LICENSE) © 2018 OrbitDB Community