open-index/open-npm huggingface dataset:
npm package: @pelicarno/mqemitter-redis
Description: Redis-based MQEmitter
Author: Matteo Collina
Latest version: 5.0.0

mqemitter-redis&nbsp;&nbsp;![ci](https://github.com/mcollina/mqemitter/workflows/ci/badge.svg)
===============

Redis-powered [MQEmitter](http://github.com/mcollina/mqemitter).

See [MQEmitter](http://github.com/mcollina/mqemitter) for the actual
API.

[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)


Install
-------

```bash
$ npm install mqemitter-redis --save
```

Example
-------

```js
var redis = require('mqemitter-redis')
var mq = redis({
  port: 12345,
  host: '12.34.56.78',
  password: 'my secret',
  db: 4
})
var msg = {
  topic: 'hello world',
  payload: 'or any other fields'
}

mq.on('hello world', function (message, cb) {
  // call callback when you are done
  // do not pass any errors, the emitter cannot handle it.
  cb()
})

// topic is mandatory
mq.emit(msg, function () {
  // emitter will never return an error
})
```

Connection String Example
-------------------------

```js
var redis = require('mqemitter-redis')
var mq = redis({
  connectionString: 'redis://:authpassword@127.0.0.1:6380/4'
})
```

## API

<a name="constructor"></a>
### MQEmitterRedis([opts])

Creates a new instance of mqemitter-redis.
It takes all the same options of [ioredis](http://npm.im/ioredis),
which is used internally to connect to Redis.

This constructor creates two connections to Redis.

Acknowledgements
----------------

Code ported from [Ascoltatori](http://github.com/mcollina/ascoltatori).

License
-------

MIT
npm package: @pelith/ethers-multicall
Description: ## Install
Author: Pelith
Latest version: 0.2.3

# @pelith/ethers-multicall [![npm version](https://badge.fury.io/js/@pelith%2Fethers-multicall.svg)](https://badge.fury.io/js/@pelith%2Fethers-multicall)

## Install

```bash
yarn add @pelith/ethers-multicall
```

## Example

```
import { Contract as MulticallContract, Provider as MulticallProvider } from '@pelith/ethers-multicall';

const ethcallProvider = new MulticallProvider(web3Provider, chainId);
const tokenContract = new MulticallContract(address, ERC20_ABI);
const balances = await ethcallProvider.all([
  tokenContract.balanceOf(account1),
  tokenContract.balanceOf(account2),
]);

const balancesAtBlock = await ethcallProvider.all([
  tokenContract.balanceOf(account1),
  tokenContract.balanceOf(account2),
], blockTag);
```
npm package: @pelith/etherscan-api
Description: ## Example
Author: hung-pelith
Latest version: 0.1.0

# Etherscan Api

## Example

```
import { keccak256 } from "@ethersproject/keccak256";
import { toUtf8Bytes } from "@ethersproject/strings";
import etherscanApi from 'etherscan-api';

const apiKey = process.env.ETHERSCAN_APIKEY as string;
const api = etherscanApi(apiKey, 'bsc_mainnet');
const topicHash = keccak256(toUtf8Bytes('Submit(address,uint256[])'));
const logs = await api.log.getLogs(INTELLIGENCE_ADDRESS, startBlock.toString(), 'latest', topicHash);
```
npm package: @pellegrims/eslint-config
Description: ESLint shareable configuration
Author: Robin Pellegrims
Latest version: 1.0.13
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @pellegrims/eslint-config

[![npm package link](https://img.shields.io/npm/v/@pellegrims/eslint-config)](https://www.npmjs.com/package/@pellegrims/eslint-config)

This package provides an opinionated shareable eslint config.

## Usage

This package exports 4 ESLint configurations.

To install all peer dependencies automatically:

```sh
npx install-peerdeps --dev @pellegrims/eslint-config
```

### @pellegrims/eslint-config/javascript

This entry points enables linting rules for javascript.

It requires the following packages:

- `eslint`
- `eslint-config-prettier`
- `eslint-plugin-etc`
- `eslint-plugin-import`
- `eslint-plugin-unicorn`

### @pellegrims/eslint-config/typescript

This entry points enables linting rules for typescript.

It requires the following packages:

- `@typescript-eslint/eslint-plugin`
- `@typescript-eslint/parser`
- `eslint`
- `eslint-config-prettier`
- `eslint-plugin-etc`
- `eslint-plugin-import`
- `eslint-plugin-rxjs`

### @pellegrims/eslint-config/angular

This entry points enables linting rules for angular.

It requires the following packages:

- `@angular-eslint/eslint-plugin`
- `eslint-plugin-ngrx`
- `eslint-plugin-rxjs-angular`

### @pellegrims/eslint-config/angular-template

This entry points enables linting rules for angular templates.

It requires the following packages:

- `@angular-eslint/eslint-plugin-template`
- `eslint-plugin-angular-template-consistent-this`