open-index/open-npm huggingface dataset:
npm package: @mempool/electrum-client
Description: Electrum protocol client for Node.js
Latest version: 1.1.9

# electrum-client

Electrum Protocol Client for node.js.

# based on

* https://github.com/you21979/node-electrum-client
* https://github.com/7kharov/node-electrum-client
* https://github.com/BlueWallet/rn-electrum-client

# features

* persistence (ping strategy and reconnection)
* batch requests
* works in nodejs

## protocol spec

* https://electrumx.readthedocs.io/en/latest/PROTOCOL.html

## usage

Relies on `net` so will only run in NodeJS environment.
npm package: @mempool/liquid.js
Description: NPM package module for Liquid APIs.
Author: Miguel Medeiros
Latest version: 2.2.1

# Liquid**JS** API

[![npm version](https://img.shields.io/npm/v/@mempool/liquid.js.svg?style=flat-square)](https://www.npmjs.org/package/@mempool/liquid.js)
[![NPM](https://img.shields.io/david/mempool/liquid.js.svg?style=flat-square)](https://david-dm.org/mempool/liquid.js#info=dependencies)
[![Known Vulnerabilities](https://snyk.io/test/github/mempool/liquid.js/badge.svg?style=flat-square)](https://snyk.io/test/github/mempool/liquid.js)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)

NPM package module for Liquid Network APIs.

Documentation: [https://liquid.network/api](https://liquid.network/api)

## **Installation**

### **ES Modules**

Install the npm module.

```bash
# npm
$ npm install @mempool/liquid.js --save

# yarn
$ yarn add @mempool/liquid.js
```

Or if you're not into package management, just [download a ZIP](https://github.com/mempool/mempool.js/archive/refs/heads/main.zip) file.

Import the module.

```js
import liquidJS from '@mempool/liquid.js';

const liquid = liquidJS();
```

### **CommonJS**

Include the line below in the `head` tag of your html file.

```html
<script type="text/javascript" src="https://liquid.network/liquid.js"></script>
```

Call `liquidJS()` function to access the API methods.

```js
const liquid = liquidJS();
```

---

## **Features**

- [Addresses](./README-liquid.md#get-address)
- [Assets](./README-liquid.md#get-address)
- [Blocks](./README-liquid.md#get-address)
- [Fees](./README-liquid.md#get-address)
- [Mempool](./README-liquid.md#get-address)
- [Transactions](./README-liquid.md#get-address)
- [Websocket Client](./README-liquid.md#Websocket-Client)
- [Websocket Server](./README-liquid.md#Websocket-Server)
---

## **Contributing**

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

---

## **License** [MIT](https://choosealicense.com/licenses/mit/)
npm package: @memrearal/react-native-doubletap
Description: A react-native component that handles double tap and single tap events
Author: memrearal
Latest version: 1.0.3

# react-native-doubletap

## EN:

A react-native component that handles double tap and single tap events

### Installation

- `npm install --save @memrearal/react-native-doubletap`

### Usage

```js
import DoubleTap from "@memrearal/react-native-doubletap";
export default class App extends React.Component {
  render() {
    return (
      <View>
        <DoubleTap
          onSingleTap={() => {
            console.log("single tap!");
          }}
          onDoubleTap={() => {
            console.log("double tap!");
          }}
          delay={250}
        >
          <Button title="Single or Double Tap" />
        </DoubleClick>
      </View>
    );
  }
}
```

## Props

| Property    | Type     | Default | Description                   |
| ----------- | -------- | ------- | ----------------------------- |
| delay       | number   | 250     | Time for delay between taps   |
| onSingleTap | function | null    | callback for single tap event |
| onDoubleTap | function | null    | callback for double tap event |

## License

MIT

## TR:

Double Tap ve Single Tap olaylarını işleyen bir react-native component'i 

## Kurulum

- `npm install --save @memrearal/react-native-doubletap`

## Kullanım

```js
import DoubleTap from "@memrearal/react-native-doubletap";
export default class App extends React.Component {
  render() {
    return (
      <View>
        <DoubleTap
          onSingleTap={() => {
            console.log("single tap!");
          }}
          onDoubleTap={() => {
            console.log("double tap!");
          }}
          delay={250}
        >
          <Button title="Single or Double Tap" />
        </DoubleClick>
      </View>
    );
  }
}
```

## Proplar

| Prop Adı    | Tip       | Varsayılan | Açıklama                                |
| ----------- | --------- | ---------- | --------------------------------------- |
| delay       | sayı      | 250        | İki tap arası olması gereken max süre   |
| onSingleTap | fonksiyon | null       | tek tap sonunda işlenecek fonksiyon     |
| onDoubleTap | fonksiyon | null       | iki tap sonunda işlenecek fonksiyon     |

## Lisans

MIT
npm package: @memrearal/slider-captcha-server
Description: User-friendly puzzle for Express
Author: memrearal
Latest version: 1.0.3

# @slider-captcha
Generate a puzzle slider captcha and display with React component.\

## Installation
React frontend:
```
npm i @memrearal/slider-captcha-react
```
Backend:
```
npm i @memrearal/slider-captcha-server
```
## Usage
React:
```
import {SliderCaptcha} from '@memrearal/slider-captcha-react';

function verifiedCallback(token) {
  console.log('Captcha token: ' + token);
}

function App() {
  return (
    <SliderCaptcha
      create="https://example.com/captcha/create"
      verify="https://example.com/captcha/verify"
      callback={verifiedCallback}
    />
  );
}
```
Express:
```
var sliderCaptcha = require('@memrearal/slider-captcha-server');

app.get('/captcha/create', function (req, res) {
  sliderCaptcha.create()
    .then(function ({data, solution}) {
      req.session.captcha = solution;
      req.session.save();
      res.status(200).send(data);
    });
});

app.post('/captcha/verify', function (req, res) {
  sliderCaptcha.verify(req.session.captcha, req.body)
    .then(function (verification) {
      if (verification.result === 'success') {
        req.session.token = verification.token;
        req.session.save();
      }
      res.status(200).send(verification);
    });
});
```
### React component props

| Name | Type | Default | Description |
|:---- | ---- | ---- | ------ |
| callback | func | `(token) => console.log(token)` | Called with token on successful verification |
| create | string or func | `captcha/create` | Either the URL to fetch data from or a `function ()` returning a promise which resolves with `{ background, slider }` as PNG buffers |
| verify | string or func | `captcha/verify` | Either the URL to fetch data from or a `function (response, trail)` returning a promise which resolves with `{ result, token }` |
| text | { anchor: string, challenge: string } | `{ anchor: 'I am human', challenge: 'Slide to finish the puzzle' }` | Text used for captcha |
| variant | string | `light` | Use `'light'` for light theme, `'dark'` for dark theme |

### Create captcha options
`sliderCaptcha.create({option: value})`

| Name | Type | Default | Description |
|:---- | ---- | ---- | ------ |
| image | buffer | randomly generated pattern | Background image used for captcha - resized to 250x150 |
| fill | string | `#000` | Color used in overlay of puzzle piece on background |
| stroke | string | `#fff` | Color for outline of puzzle piece |
| strokeWidth | string | `0.4` | Puzzle piece outline width |
| opacity | string | `0.5` | Opacity of puzzle piece overlay on background |
| distort | bool | false | Apply distortion to the puzzle piece |
| rotate | bool | false | Apply a random rotation to the puzzle piece |

### Verify captcha options
`sliderCaptcha.verify(captcha, {response, trail: {x, y}}, {option: value})`


| Name | Type | Default | Description |
|:---- | ---- | ---- | ------ |
| tolerance | number | 7 | Allowed deviation from true captcha value |
npm package: @memrise/lqip
Description: Low Quality Image Placeholders (LQIP) Module for Node; fork from original lqip
Author: Memrise
Latest version: 2.1.1

<p align="center">
  <img src="https://raw.githubusercontent.com/zouhir/lqip/master/_github/logo.png" width="508">
</p>

<h4 align="center">LQIP: Low Quality Images Placeholder</h4>
<p align="center">
  <a align="center" href="https://lqip-loader.firebaseapp.com/">demo</a>
</p>

# Project Status

Note: this is a fork from the [original `lqip` repo](https://github.com/zouhir/lqip-loader) which is no longer actively maintained.

---

<p>
  <img src="https://raw.githubusercontent.com/zouhir/lqip/master/_github/installation.png" width="100%">
</p>

```
npm install --save lqip
```

<br />
<p>
  <img src="https://raw.githubusercontent.com/zouhir/lqip/master/_github/example.png" width="100%" />
</p>

Generating Base64 from an image:

```js
const lqip = require("lqip");

const file = `./dest/to/file/zouhir-riding-a-bike.jpg`;

lqip.base64(file).then((res) => {
  console.log(res); // "data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhY.....
});
```

Generating colour palette from an image:

```js
const lqip = require("lqip");

const file = `./dest/to/file/zouhir-riding-a-bike.jpg`;

lqip.palette(file).then((res) => {
  // the response will be sorted from most dominant colour to least
  console.log(res); //  [ '#628792', '#bed4d5', '#5d4340', '#ba454d', '#c5dce4', '#551f24' ]
});
```

<br />
<p>
  <img src="https://raw.githubusercontent.com/zouhir/lqip/master/_github/api.png" width="100%" />
</p>

##### `lqip.base64(filePath: string)`

This method accepts an image file path, the file has to be one of those formats ['jpeg', 'jpg', 'png'] and returns a Base64
image string with a valid format and ready to be used in web applications such as in <img /> tags source or in CSS properties URLs.

##### `lqip.palette(filePath: string)`

This method accepts an image file path, and returns an colour palette as an array of HEX colour values. The array that is returned
is sorted from the most to the least dominant colour.

<br />
<p>
  <img src="https://raw.githubusercontent.com/zouhir/lqip/master/_github/inspo.png" width="100%" />
</p>

- [Medium web app](https://medium.com/cucumbertown-magazine/the-beginners-guide-to-composition-in-food-photography-how-to-transform-your-food-photos-from-good-39613ab78bf2)
- [Instagram native mobile app](https://www.instagram.com/)
- [Polymer shop project](https://shop.polymer-project.org/)

<br />
<p>
  <img src="https://github.com/zouhir/lqip/blob/master/_github/mentions.png" width="100%" />
</p>

- Essential Image Optimization, An eBook by Addy Osmany [link](https://images.guide/)

<br />
<p>
  <img src="https://raw.githubusercontent.com/zouhir/lqip/master/_github/creds.png" width="100%" />
</p>

Related projects to this would be [lqip-loader for webpack](https://github.com/zouhir/lqip-loader) as well as [lqip-cli](https://github.com/zouhir/lqip-cli).

Thanks to contributors and [Colin van Eenige](https://twitter.com/cvaneenige) for his reviews and early testing.

MIT - [Zouhir Chahoud](https://zouhir.org/)