open-index/open-npm huggingface dataset:
npm package: @nielsverheggen/crypto
Description: Encrypts and decrypts strings.
Latest version: 2.0.0

# @nielsverheggen/crypto
![npm (scoped)](https://img.shields.io/npm/v/@nielsverheggen/crypto)
![github](https://img.shields.io/github/downloads/nielsverheggen/crypto/total?logo=GitHub)
![branch checks](https://img.shields.io/github/checks-status/nielsverheggen/crypto/main?logo=Git)

This package can encrypt and decrypt strings.

## Install
`$ npm install @nielsverheggen/crypto`
npm package: @niemen/graphql-nats-streaming-subscriptions
Description: GraphQL subscriptions over NATS Streaming
Author: niemen
Latest version: 0.1.7

# graphql-nats-streaming-subscriptions

This package implements the PubSubEngine Interface from the graphql-subscriptions package and also the new AsyncIterator interface. It allows you to connect your subscriptions manger to a nats streaming based Pub Sub mechanism to support multiple subscription manager instances.

## Usage

```javascript
const { NatsPubSub } = require('@niemen/graphql-nats-streaming-subscriptions');
const { connect } = require('node-nats-streaming');

const NATS_CLUSTER = 'faas-cluster';
const CLIENT_ID = 'streaming-client';
const NATS_URL = 'nats://nats.io:4222';

const client = connect(NATS_CLUSTER, CLIENT_ID, { url: NATS_URL });
const pubSub = new NatsPubSub(client);

const resolver = {
     Subscription: {
        NatsStreaming: {
            resolve: (msg) => {
                //get message data
                const data = msg;
                return msg;
            },
            subscribe: () => pubSub.asyncIterator(['topic1', 'topice2'])
        }
    }
}
// for more options see: https://github.com/nats-io/stan.js
```
npm package: @nieopierzony/core
Description: Полезные функции для моих ботов
Author: Philipp
Latest version: 1.0.4

<p align="center">
  <img alt="poster" src="https://github.com/nieopierzony/core/raw/main/assets/poster.jpg" >
</p>
<h1 align="center">Bot Core ⚙️</h1>

> Модуль в разработке. На данный момент работает только получение онлайна фракции.


## Установка

```
$ npm i @nieopierzony/core --save
или
$ yarn add @nieopierzony/core
```

## Пример

```js
const { helpers, getFractionPlayers } = require('@nieopierzony/core');

const serverID = 8;
const fractionID = 1;

// Получение онлайна фракции на указанном выше сервере
(async () => {
  const players = await getFractionPlayers(serverID, fractionID);
  const onlinePlayers = players.filter(player => player.online);
  const seniors = players.filter(player => player.rank >= 9);

  console.log(
    'Онлайн фракции "%s" на сервере %s',
    helpers.fractionNames[fractionID - 1],
    helpers.serverNames[serverID - 1],
  );
  console.log(
    '\t- Всего во фракции: %d\n\t- Из которых онлайн: %d',
    players.length,
    onlinePlayers.length,
  );
  console.log(
    '\t- Руководство:\n',
    seniors.length === 0
      ? 'В руководстве никого не найдено'
      : seniors
          .sort((a, b) => b.rank - a.rank)
          .map(
            ({ nickname, rank, online }) =>
              `${nickname} - ${rank} ранг - ${online ? 'В сети' : 'Не в игре'}`,
          )
          .join('\n'),
  );
})();
```

## API

### core.getFractionPlayers(serverID, fractionID, requestConfig);

> Обратите внимание: не делайте сразу много запросов на сайт, иначе ваш IP могут заблокировать

#### serverID

Тип: `number`

Порядковый номер сервера Arizona RP

#### fractionID

Тип: `number`

ID фракции, как указано на самом сервере

#### requestConfig

Тип: `Object`
По умолчанию: `{}`

Конфигурация запроса [Axios](https://github.com/axios/axios#axioscreateconfig)

Возвращает массив игроков во фракции:

```js
// core.getFractionPlayers(1, 2);
/**
 * => [
 *    { id: '1', nickname: 'Vasya_Pupkin', rank: 1, online: true },
 *    { id: '2', nickname: 'John_Smith', rank: 10, online: false }
 *  ]
 */
```

## Лицензия

MIT © [Philipp Zelinski](https://github.com/nieopierzony)
npm package: @nierifeng/golden-layout
Description: A multi-screen javascript Layout manager
Author: Golden Layout community
Latest version: 2.6.0

# Golden Layout

[![NPM version](https://img.shields.io/npm/v/golden-layout)](https://www.npmjs.com/package/golden-layout) [![License](https://img.shields.io/github/license/golden-layout/golden-layout)](https://img.shields.io/github/license/golden-layout/golden-layout)

Golden Layout is a Javascript layout manager which enables you to layout components in a web page and re-arrange them with drag and drop. Its features include:

* Native popup windows
* Touch support
* Support for application frameworks such as Angular and Vue
* Virtual components
* Comprehensive API
* Load and save layouts
* Focus components
* Completely themeable
* Works in modern browsers (Firefox, Chrome)
* Responsive design

## Development

Except for simple bug-fixes, commits should go into the `dev` branch, which will become version 3.0.  The `dev` branch is quite unstable (and not backwards compatible), but should hopefully stabilize soon.

## Installation
The library can be installed into an application package with the npm command:\
`npm i golden-layout`

## More information

For more information, please refer to the [Golden Layout website](https://golden-layout.github.io/golden-layout)
npm package: @nieshixiong/eslint-config-demo
Description: 一份集成了typescript、eslint、prettier的基础配置
Author: nieshixiong
Latest version: 1.0.1

# react-typescript-eslint-prettier-demo
一份集成了typescript、eslint、prettier的基础配置

## 配置具有的功能
- `基于airbab的eslint配置`
- `typescript eslint支持`
- `react typescript eslint支持`
- `eslint 代码自动修复`
- `vscode中保存时自动修复（也可在webstorm preference 中搜索eslint，勾选 Run eslint --fix on save ）`

## 配置涉及的依赖包链接

- [`@typescript-eslint/typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/README.md)
- [`@typescript-eslint/parser`](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser)
- [`eslint-config-airbnb-typescript`](https://www.npmjs.com/package/eslint-config-airbnb-typescript)
- [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier#readme)
- [`eslint-plugin-react`](https://github.com/yannickcr/eslint-plugin-react)
npm package: @nieshixiong/stylelint-prettier-demo
Description: 让项目当中的样式文件保持一致的样式规范的配置
Author: nieshixiong
Latest version: 1.0.0

# stylelint-prettier-demo
让项目当中的样式文件保持一致的样式规范的配置

## 配置具有的功能
- 编写样式时对格式错误的地方会标红报错
- 保存文件时自动格式化

## ide集成
`webstorm`
1. prettier（默认时js，因为js通常都用eslint，所以更改一下配置用于css/scss）
![prettier_config](./images/prettier_set.png)
2. stylelint (当添加了.stylelintrc之后会默认开启，如果没有开启，可查看该配置并启用)   
![stylelint_config](./images/stylelint_config.png)
   
`其他ide`
- prettier集成可参考 [prettier ide集成](https://prettier.io/docs/en/editors.html)
- stylelint集成可参考 [stylelint ide集成](https://stylelint.io/user-guide/integrations/editor)
npm package: @nietpham/plug-controller
Description: Internet Computer Plug wallet's controller
Author: Psychedelic
Latest version: 0.26.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

![](https://storageapi.fleek.co/fleek-team-bucket/plug-banner.png)


# Plug Controller - Controller functions for the Plug Extension
[![Fleek](https://img.shields.io/badge/Made%20by-Fleek-blue)](https://fleek.co/)
[![Discord](https://img.shields.io/badge/Discord-Channel-blue)](https://discord.gg/yVEcEzmrgm)

## Introduction

The Plug Controller is a package that provides utility & logic to the Plug browser wallet extension, as well as the account creation and management. It handles the interactions between the extension and the Internet Computer as users interact with accounts, balances, canisters, and the network.

## Installation

```
npm install @psychedelic/plug-controller
```

To install the package you need to be authenticated to Github via `npm login`, ensure that you have:

- A personal access token (create one [here]((https://github.com/settings/tokens))) with the `repo` and `read:packages` scopes to login to the [GitHub Package Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages).

- Have authenticated via `npm login`, using the **personal access token** as your **password**:

```
npm login --registry=https://npm.pkg.github.com --scope=@Psychedelic
```

## Plug KeyRing
A Plug Keyring is a class that manages the user's accounts and allow you to create/import a mnemonic and its keypair. 
```
import PlugController from '@psychedelic/plug-controller';

const keyRing = new PlugController.PlugKeyRing();

// Initialize keyring and load state from extension storage
await keyRing.init();
```

### Keyring Creation
```
// Creates the keyring and returns the default wallet
const wallet: PlugWallet = await keyRing.create(password);
```

### Mnemonic Import
```
// Creates the keyring using the provided mnemonic and returns the default wallet
const wallet: PlugWallet = await keyRing.importFromMnemonic(mnemonic, password);
```

## Documentation

Interface and Type definitions documents for the **@Psychedelic/plug-controller** implementation is provided in the following [location](https://twilight-dream-0902.on.fleek.co/).

These are based in the `main release branch` and provide a good overview of the whole package (modules, IDL's, utils, etc).