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

# Pikatokenswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)


In-depth documentation on this SDK is available at [pikatokenswap.org](https://pikatokenswap.org/docs/v1/SDK/getting-started/).

## 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/Pikatokenswap/pikatokenswap-sdk.git
```

Move into the pikatokenswap-sdk working directory

```sh
cd pikatokenswap-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: @pikaz/transform-package-to-esmodule
Description: Convert js mounted window variables to module
Author: pikaz
Latest version: 0.0.3

## 介绍

现有部分前端依赖库仅支持通过 `<script>` 标签引入，尚未提供对 ESModule (ECMAScript 模块) 的原生支持。本项目可将这些库/代码转化为能够以 ESModule 形式被导入和使用，同时保持原有的功能性和兼容性，从而快速兼容至 vite 等现代打包器。

## [demo 打包代码配置点击这里 copy](https://github.com/pikaz-18/transform-package-to-ESModule/blob/master/example/build.js)

## [demo 使用打包产物代码点击这里查看](https://github.com/pikaz-18/transform-package-to-ESModule/blob/master/example/index.html)

npm run build 可测试打包，npm run test 可查看打包效果

## 效果示例

源 js 文件（无 ESModule 支持）

```js
const add = (a, b) => a + b;
window.exampleAdd = add;
```

打包后引入

```js
import { exampleAdd } from "./exampleAdd.js";
const result = exampleAdd(1, 2);
console.log(result);
```

## 安装

### with npm or yarn

```bash
yarn add @pikaz/transform-package-to-ESModule

npm i -S @pikaz/transform-package-to-ESModule
```

## 使用说明

### 打包 js 文件（推荐）

#### 打包配置[示例 build.js](https://github.com/pikaz-18/transform-package-to-ESModule/blob/master/example/build.js)

```js
const path = require("path");
const build = require("@pikaz/transform-package-to-ESModule");
build({
  jsPath: path.join(__dirname, "exampleAddCore.js"), //需打包的js文件路径
  keys: ["exampleAdd"], //打包的js文件挂载在window上的对象key，可传入多个，若无挂载对象则传null或不传（打包产物会自动导出这些对象）
  outPath: path.join(__dirname, "exampleAdd.js"), //打包js文件导出路径
  //也可以选择传入jsCore不打包js文件而是直接打包js代码，不推荐，js代码可能存在问题字符导致打包文件错误
  //jsCore: "const exampleAdd= (a,b)=>a+b; window.exampleAdd=exampleAdd;",
});
```

执行 node build.js 进行打包，得到打包文件 exampleAdd.js

#### 使用打包文件[示例 index.html](https://github.com/pikaz-18/transform-package-to-ESModule/blob/master/example/index.html)

```js
// 打包产物导出对象取决于打包配置的keys
import { exampleAdd } from "./exampleAdd.js";
const result = exampleAdd(1, 2);
console.log(result);
```

### 打包 js 代码并导出（不推荐）

```js
import createModule from "@pikaz/transform-package-to-ESModule/createModule";
const { exampleAdd } = createModule({
  keys: ["exampleAdd"], //打包的js文件挂载在window上的对象key，可传入多个，若无挂载对象则传null或不传（打包函数会自动导出这些对象）
  jsCore: "const exampleAdd= (a,b)=>a+b;window.exampleAdd=exampleAdd;", //js代码
});
// 使用exampleAdd函数
const result = exampleAdd(1, 2);
console.log(result);
```
npm package: @pikepresje/progress-bar
Description: Ngx progress bar
Author: Ismajl Maliqi
Latest version: 1.0.2

# NgxProgressBar

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.0.0.

## Code scaffolding

Run `ng generate component component-name --project ngx-progress-bar` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-progress-bar`.
> Note: Don't forget to add `--project ngx-progress-bar` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build ngx-progress-bar` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build ngx-progress-bar`, go to the dist folder `cd dist/ngx-progress-bar` and run `npm publish`.

## Running unit tests

Run `ng test ngx-progress-bar` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @piki.me/random-username-go
Description: Generate random usernames.
Author: Piki Lee
Latest version: 2.0.3

# Installation

## NPM
```
npm install @piki.me/random-username-go
```

## Yarn
```
yarn add @piki.me/random-username-go
```

## PNPM
```
pnpm install @piki.me/random-username-go
```

# Usage
```js
import { random } from "@piki.me/random-username-go";

random() // => "开心的河马"

random("en") => // "Fearless Cat"
```

# API
## random(language = "zh-Hans")
Get a random username.

### language
Supports: `en`, `zh-Hans`
Default: `zh-Hans`
npm package: @piki.me/set-proxy
Description: Run commands with `http_proxy` and `https_proxy` set to the value you specified automatically.
Author: Piki Lee
Latest version: 0.0.9

Run commands with `http_proxy` and `https_proxy` set to the value you specified automatically.

[中文文档](./README_CHINESE.md)

# Install
```
npm install -g @piki.me/set-proxy
```

# Example
```
// set proxy, set-proxy would memorize this value
sp proxy http://127.0.0.1:7890

// show proxy
sp proxy

// run command
sp curl https://www.google.com
```

# SYNOPSIS
```
sp [command]     // run command with http_proxy and https_proxy set
sp proxy [proxy] // set proxy, set-proxy would memorize this value
sp proxy         // show proxy
```
npm package: @pikilee/random-username
Description: Generate random usernames.
Author: Piki Lee
Latest version: 2.0.0

# Installation

## NPM
```
npm install @pikilee/random-username
```

## Yarn
```
yarn add @pikilee/random-username
```

## PNPM
```
pnpm install @pikilee/random-username
```

# Usage
```js
import { random } from "@pikilee/random-username";

random() // => "开心的河马"

random("en") => // "Fearless Cat"
```

# API
## random(language = "zh-Hans")
Get a random username.

### language
Supports: `en`, `zh-Hans`
Default: `zh-Hans`
npm package: @pikisoft/duckduckgo-search
Description: Search API using the DuckDuckGo.com search engine.
Author: luuk schipperheijn
Latest version: 0.0.4

# duckduckgo-search

Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine. Ported https://github.com/deedy5/duckduckgo_search/ to JS using ChatGPT

Please note that this module cannot be used in a browser because of duckduckgo CORS policy.

## Installation

You can install the `duckduckgo-search` module using npm:

```bash
npm install --save duckduckgo-search
```

## Usage

1. Import the module in your JavaScript file:

```javascript
const duckduckgoSearch = require("duckduckgo-search");
```

2. Perform an image search using the `images` function:

```javascript
(async () => {
  for await (const result of duckDuckGoSearch.images("example keywords")) {
    console.log(result);
  }
})();
```

3. Perform a text search using the `textApi` function:

```javascript
(async () => {
  for await (const result of duckDuckGoSearch.text("example keywords")) {
    console.log(result);
  }
})();
```

Replace `"example keywords"` with the actual keywords you want to search for.

Please note that the `duckduckgo-search` module returns results asynchronously using ES6 async iterators, which is why we are using the `for await...of` loop to iterate over the results.

## Example

Here's a complete example of how you might use the `duckduckgo-search` module in your project:

```javascript
const duckduckgoSearch = require("duckduckgo-search");

(async () => {
  // Image search
  console.log("Image search results:");
  for await (const result of duckDuckGoSearch.images("beautiful landscapes")) {
    console.log(result);
  }

  // Text search
  console.log("Text search results:");
  for await (const result of duckDuckGoSearch.text("web development tips")) {
    console.log(result);
  }
})();
```

## Support

For any issues, questions, or feedback, please create an issue on the [GitHub repository](https://github.com/luukschipperheyn/duckduckgo-search) for this project.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.