open-index/open-npm huggingface dataset:
npm package: @peerlancers/styles
Description: A shared styles for all peerlancers projects.
Author: Arrian Pascual
Latest version: 0.0.7

# styles

> A common styles for Peerlancers project with theming and utilities.

## Install

```bash
npm install @peerlancers/styles
```

or

```bash
yarn add @peerlancers/styles
```

## Usage

```scss
@import '~@peerlancers/styles/theme';
@import '~@peerlancers/styles/utilities';

@include pl-set-theme(dark);
```

## There is a default reset or normalize for your styling

```scss
@import '~@peerlancers/styles/reset';
@import '~@peerlancers/styles/normalize';
```

## License

[MIT](http://vjpr.mit-license.org)

[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
[npm-url]: https://npmjs.org/package/live-xxx
[travis-image]: https://img.shields.io/travis/live-js/live-xxx/master.svg
[travis-url]: https://travis-ci.org/live-js/live-xxx
[coveralls-image]: https://img.shields.io/coveralls/live-js/live-xxx/master.svg
[coveralls-url]: https://coveralls.io/r/live-js/live-xxx?branch=master
npm package: @peerless-hero/aliyun-sdk
Description: Aliyun sdk for Node.js
Author: peerless_hero
Latest version: 1.0.1

# @peerless-hero/aliyun-sdk

本工具是对基于阿里云OpenAPI封装的SDK工具。由于官方提供的SDK难于使用，且文档过少，因此自己封装了一套工具。

## 目录

- [English Version](README.md)
- [中文版](README.zh-cn.md)

## 安装

```bash
# npm
npm install --save @peerless-hero/aliyun-sdk

# yarn
yarn add -D @peerless-hero/aliyun-sdk

# pnpm
pnpm add -D @peerless-hero/aliyun-sdk
```

## 使用

```ts
// 以Cas功能模块为例
// 默认导出均为当前API文档描述的默认版本
import { type Cas, CasClient } from '@peerless-hero/aliyun-sdk'
// 初始化实例时，你可以不直接传入accessKeyId和accessKeySecret的参数
// 而是提供环境变量 ALIYUN_ACCESS_KEY_ID 和 ALIYUN_ACCESS_KEY_SECRET
// SDK会自动读取环境变量并使用
const cas = new CasClient({
  // 阿里云AccessKey
  accessKeyId: 'xxxxxxxxxxxxxxxx',
  // 阿里云AccessKeySecret
  accessKeySecret: 'xxxxxxxxxxxxxxxx',
})
// 使用其中的类型
let result: Cas.DescribeCACertificateListData | null = null
// 调用方法
// 所有方法名称均取自官方文档
result = await cas.DescribeCACertificateList({})
```

```ts
// 默认导出均为当前API的默认版本，如需使用特定版本，请以如下方式导入
// 例如使用2020-06-30版本的Cas模块
import { type Cas, CasClient } from '@peerless-hero/aliyun-sdk/versions/2020-06-30'
```

```ts
// 所有模块均默认使用了文档提供的第一个Endpoint，如需切换，请使用如下方式设置
cas.setEndpoint('cn-hangzhou') // 设置请求域名
```

## 注意事项

- 本工具仅支持版本不小于17.15.0的Node.js环境。
- 本工具不提供oss相关接口，因为这部分接口签名方式与其他接口存在较大差异。因为阿里云oss是兼容s3协议的，所以更推荐[s3-sdk](https://github.com/aws/aws-sdk-js-v3)进行相关操作，
- 本工具代码基于阿里云公开的[产品文档接口](https://api.aliyun.com/meta/v1/products)自动生成，可能因文档更新而产生遗漏。届时如有更新需求，请在github上提[issue](https://github.com/peerless-hero/aliyun-sdk/issues)。

## License

[MIT](./LICENSE) License © 2023-PRESENT [Peerless Hero](https://github.com/peerless-hero)
npm package: @peerless_hero/cli
Description: ## 项目概述
Author: peerless_hero
Latest version: 0.2.11

# @peerless_hero/cli

## 项目概述

这个CLI工具提供了一系列命令来简化开发和部署过程。

## 功能特性

- **API服务模板生成**：通过`cli api`命令生成API服务模板，帮助开发者快速搭建API服务的基础结构。
- **Changelog文件生成**：使用`cli changelog`命令自动生成Changelog文件，记录项目的版本变更历史。
- **类型定义文件生成**：通过`cli type`命令生成.d.ts文件，提供代码的类型定义，简化开发编写类型文件的必要。
- **请求模块生成**：利用`cli request`命令生成请求模块代码，以发布到npm仓库供团队内成员使用。
- **CLI版本显示**：执行`cli version`命令可以显示当前CLI工具的版本信息，方便开发者了解工具的版本情况。

## 安装指南

要安装`@peerless_hero/cli`，请运行以下命令：

```bash
# npm
npm install -g @peerless_hero/cli
# yarn
yarn global add @peerless_hero/cli
# pnpm
pnpm add -g @peerless_hero/cli
```

## 使用指南

### 生成API服务模板

```bash
cli api
```

### 生成Changelog文件

```bash
cli changelog
```

### 生成.d.ts文件

```bash
cli type
```

### 生成请求模块

```bash
cli request
```

### 显示CLI版本

```bash
cli version
```

## 使用说明

本工具更推荐在ci/cd环境中使用。

## 贡献指南

我们欢迎社区的贡献！如果您想为这个项目做出贡献，请遵循以下步骤：

- Fork 仓库
- 创建您的特性分支 (git checkout -b feature/AmazingFeature)
- 提交您的更改 (git commit -m 'Add some AmazingFeature')
- 推送到分支 (git push origin feature/AmazingFeature)
- 打开一个 Pull Request

### 许可证

[MIT](./LICENSE) License © 2023-PRESENT [Peerless Hero](https://github.com/peerless-hero)
npm package: @peerlinks/sqlite-storage
Description: sqlite storage for PeerLinks protocol
Author: Fedor Indutny
Latest version: 3.0.3

# peerlinks-sqlite-storage
[![Build Status](https://travis-ci.org/peerlinks/peerlinks-sqlite-storage.svg?branch=master)](http://travis-ci.org/peerlinks/peerlinks-sqlite-storage)

SQLite storage for [PeerLinks] protocol.

## LICENSE

This software is licensed under the MIT License.

Copyright Fedor Indutny, 2019.

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.

[PeerLinks]: https://github.com/peerlinks/peerlinks
npm package: @peerlinks/swarm
Description: hyperswarm integration for PeerLinks
Author: Fedor Indutny
Latest version: 3.0.7

# peerlinks-swarm
[![Build Status](https://travis-ci.org/peerlinks/peerlinks-swarm.svg?branch=master)](http://travis-ci.org/peerlinks/peerlinks-swarm)

Integration of [PeerLinks][] protocol with [hyperswarm][].

## Usage

```js
import PeerLinks, { Message } from '@peerlinks/protocol';
import Swarm from '@peerlinks/swarm';

// Initialize PeerLinks
const peerLinks = new PeerLinks({ /* ... */ });
await peerLinks.open();

const swarm = new Swarm(peerLinks);
```

Request invite:
```js
const { requestId, request, decrypt } =
  identity.requestInvite(peerLinks.id);

const encryptedInvite = await swarm.waitForInvite(requestId);
const invite = decrypt(encryptedInvite);

const channel = await peerLinks.channelFromInvite(invite, identity);
await channel.post(Message.json('test'), identity);

swarm.joinChannel(channel);
```

Issue invite:
```js
const { encryptedInvite, peerId } =
  identity.issueInvite(channel, request, 'invitee-name');

await swarm.sendInvite({
  peerId,
  encryptedInvite,
}).promise;
```

Join/leave channel:
```js
swarm.joinChannel(channel);
swarm.leaveChannel(channel);
```

## LICENSE

This software is licensed under the MIT License.

Copyright Fedor Indutny, 2019.

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.

[PeerLinks]: https://github.com/peerlinks/peerlinks
[hyperswarm]: https://github.com/hyperswarm/hyperswarm