open-index/open-npm huggingface dataset:
npm package: @moeyua/cipher
Description: Cipher can create strong, unique encryption passwords.
Author: Moeyua
Latest version: 0.0.4

# @moeyua/cipher

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]

Cipher can create strong, unique encryption passwords.

> **Note**:
> Replace `@moeyua/cipher`, `_description_` and `moeyua` globally to use this template.

## License

[MIT](./LICENSE) License © 2023-PRESENT [Moeyua](https://github.com/moeyua)

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@moeyua/cipher?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/@moeyua/cipher
[npm-downloads-src]: https://img.shields.io/npm/dm/@moeyua/cipher?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/@moeyua/cipher
[bundle-src]: https://img.shields.io/bundlephobia/minzip/@moeyua/cipher?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=@moeyua/cipher
[license-src]: https://img.shields.io/github/license/moeyua/cipher.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/moeyua/cipher/blob/master/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/@moeyua/cipher
npm package: @moezalez/frost
Description: A TINY, fail-fast, lazy, "naked", simple immutable Javascript objects library
Author: Moritz Sattler
Latest version: 1.0.1
Deprecated: this package has been deprecated

[![Build Status](https://travis-ci.org/MoeSattler/frost.svg?branch=master)](https://travis-ci.org/MoeSattler/frost) [![codecov](https://codecov.io/gh/MoeSattler/frost/branch/master/graph/badge.svg)](https://codecov.io/gh/MoeSattler/frost)
npm package: @moezx/colorthief
Description: Get the dominant color or color palette from an image.
Author: Lokesh Dhakar
Latest version: 2.3.2-1


# Color Thief

Grab the color palette from an image using just Javascript.Works in the browser and in Node.

### View the [demo page](https://lokeshdhakar.com/projects/color-thief/) for examples, API docs, and more.

---

## Contributing

### Project structure

+ `build/` - Simple script that copies and renames files into the /dist folder.
+ `cypress/` - Browsers tests.
+ `dist/` - Generated distribution files created by [microbundle](https://github.com/developit/microbundle) package and a couple of files copied via build script.
+ `examples/` - CSS, JS, and Images for the index.html example page.
+ `src/color-thief-node.js` - Source for the Node (commonjs) compatible version of the script.
+ `src/color-thief.js` - Source for the browser (ES6, AMD, Global var) compatible version of the script.
+ `src/core.js` - Functions shared between the node and browser versions of the script.
+ `test/` - Node integration tests. Uses Chai.
+ `index.html` - Example page.

### Running tests

There are two sets of tests:

1. Browser tests run with [Cypress](https://www.cypress.io)
2. Node tests run with [Karma](https://karma-runner.github.io/latest/index.html) and utilizing [Mocha](https://mochajs.org/)

To run both the browser and Node tests:

- `npm run dev` to start local server.
- `npm run test`

To run just the browser tests with the Cypress UI:

- `npm run dev` to start local server
- `npm run test:browser`

To run just the Node tests:

- `npm run test:node`


### Adding tests

- Update `cypress/test-pages/index.html` as needed or create a new test page if you need new examples.
- Add new tests in `cypress/integration/apis_spec.js`

### Making a new release

- Merge `dev` into `master`
- Pull down `master`
- Update version number in `src/color-thief.js` and `package.json`
- Run `npm run build`
- Commit and push built files back up to `master`
- Create a new Github release along with tag. Naming convention for both ```v2.8.1```
- `npm publish`
npm package: @moezx/get-pixels
Description: Reads the pixels of an image as an ndarray
Author: Mikola Lysenko
Latest version: 4.0.0

get-pixels
==========
Given a URL/path, grab all the pixels in an image and return the result as an [ndarray](https://github.com/mikolalysenko/ndarray).  Written in 100% JavaScript, works both in browserify and in node.js and has no external native dependencies.

Currently the following file formats are supported:

* `PNG`
* `JPEG`
* `GIF`

Example
=======

```javascript
var getPixels = require("get-pixels")

getPixels("lena.png", function(err, pixels) {
  if(err) {
    console.log("Bad image path")
    return
  }
  console.log("got pixels", pixels.shape.slice())
})
```

Install
=======

    npm install get-pixels

### `require("get-pixels")(url[, type], cb(err, pixels))`
Reads all the pixels from url into an ndarray.

* `url` is the path to the file.  It can be a relative path, an http url, a data url, or an [in-memory Buffer](http://nodejs.org/api/buffer.html).
* `type` is an optional mime type for the image (required when using a Buffer)
* `cb(err, pixels)` is a callback which gets triggered once the image is loaded.

**Returns** An ndarray of pixels in raster order having shape equal to `[width, height, channels]`.

**Note** For animated GIFs, a 4D array is returned with shape `[numFrames, width, height, 4]`, where each frame is a slice of the final array.

Credits
=======
(c) 2013-2014 Mikola Lysenko. MIT License
npm package: @moezx/quantize
Description: A node.js module for color quantization, based on Leptonica.
Author: Olivier Lesnicki
Latest version: 1.2.1

quantize
========

Node.js module for color quantization, based on Leptonica.


Install
-------

	npm install quantize

Quick Overview
--------------

### Usage

`````javascript
var quantize = require('quantize');

var arrayOfPixels = [[190,197,190], [202,204,200], [207,214,210], [211,214,211], [205,207,207]];
var maximumColorCount = 4;

var colorMap = quantize(arrayOfPixels, maximumColorCount);
`````

* `arrayOfPixels` - An array of pixels (represented as [R,G,B arrays]) to quantize
* `maxiumColorCount` - The maximum number of colours allowed in the reduced palette

##### Reduced Palette

The `.palette()` method returns an array that contains the reduced color palette.

`````javascript
// Returns the reduced palette
colorMap.palette(); 
// [[204, 204, 204], [208,212,212], [188,196,188], [212,204,196]]
`````

##### Reduced pixel

The `.map(pixel)` method maps an individual pixel to the reduced color palette.

`````javascript
// Returns the reduced pixel
colorMap.map(arrayOfPixels[0]);
// [188,196,188]
`````

Author
------

* [Olivier Lesnicki](https://github.com/olivierlesnicki)

Contributors
------------

* [Nick Rabinowitz](https://github.com/nrabinowitz)
* [Mike Bostock](https://github.com/mbostock)

License
-------

Licensed under the MIT License.
npm package: @moezx/x6-react-components
Description: React components for building x6 editors
Author: bubkoo
Latest version: 2.0.0

# x6-react-components

> React components for building x6 editors

[![MIT License](https://img.shields.io/github/license/antvis/x6?style=flat-square)](/LICENSE) 
[![Language](https://img.shields.io/badge/language-typescript-blue.svg?style=flat-square)](https://www.typescriptlang.org)

[![NPM Package](https://img.shields.io/npm/v/@antv/x6-react-components.svg?style=flat-square)](https://www.npmjs.com/package/@antv/x6-react-components) 
[![NPM Downloads](http://img.shields.io/npm/dm/@antv/x6-react-components.svg?style=flat-square)](https://www.npmjs.com/package/@antv/x6-react-components) 
[![NPM Dependencies](https://img.shields.io/david/antvis/x6?path=packages%2Fx6-react-components&style=flat-square)](https://www.npmjs.com/package/@antv/x6-react-components)

## Components

- Menu
- Dropdown
- ContextMenu
- Menubar
- Toolbar
- SplitBox
- ScrollBox
- AutoScrollBox
- ColorPicker

## Installation

```shell
# npm
$ npm install @antv/x6-react-components --save

# yarn
$ yarn add @antv/x6-react-components
```

## Usage

Import component and style:

```ts
import { Menu } from '@antv/x6-react-components/es/menu'
// less
import '@antv/x6-react-components/es/menu/style'
// or css
import '@antv/x6-react-components/es/menu/style/index.css'
```

We strongly recommend using [babel-plugin-import](https://github.com/ant-design/babel-plugin-import), which can convert the following code to the '@antv/x6-react-components/es/xxx' way:

```ts
import { Menu } from '@antv/x6-react-components'
```

And this plugin will also load corresponding styles too. Via `.babelrc` or babel-loader:

```js
{
  "plugins": [
    [
      "import",
      {
        "libraryName": "@antv/x6-react-components",
        "libraryDirectory": "es", // es or lib
        "style": true,
        "transformToDefaultImport": true
      }
    ]
  ]
}
```

## Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please [create an issue](https://github.com/antvis/x6/issues/new).
npm package: @mofair/mf-blackhole-jssdk
Description: TypeScript SDK 的模板项目
Latest version: 0.2.0

# typescript-template

## 简介

这是一个 TypeScript SDK 项目，你可以直接编写 SDK 代码了，入口文件是 _src/index.ts_。

## npm scripts

- `build`: 打包脚本
- `clean`: 清理打包脚本目录
- `dev`: 打包脚本并监听文件更改
- `docs`: 生成 api 文档
- `docs:server`: 生成 api 文档并在本地服务器查看
- `format`: 格式化代码
- `test`: 运行全部的测试
npm package: @mofair/mf-mapbox-jssdk
Description: TypeScript SDK 的模板项目
Latest version: 0.3.5

# mapboxGl 模飞封装

## API

#### 初始化

```js
const mapIns = new CesiumFair({
  style: {
    container: "#map",
  },
});
```

### 设置绘图样式

```js
/**
 *
 * @description 设置指定样式层中绘图属性的值
 * @param {string} layerId - 图层ID
 * @param {string} name - 绘图属性名称
 * @param {any} value - 绘图属性值
 * @return map
 *
 * @example
 * map.setPaintProperty('my-layer', 'fill-color', '#faafee');
 *
 */
setPaintProperty(layerId, name, value, (option = {}));
```
npm package: @mofangui/core
Description: wangEditor core
Author: skybjf
Latest version: 1.1.20

# wangEditor core

[wangEditor](https://www.wangeditor.com/) core.

## Main Functionalities
- View（ model -> vdom -> DOM ） + Selection
- Menus + toolbar + hoverbar
- Core editor APIs and events
- Register third-party modules (menus, plugins...)

## Main dependencies
- [slate.js](https://docs.slatejs.org/)
- [snabbdom.js](https://github.com/snabbdom/snabbdom)
npm package: @mofangui/editor
Description: Web rich text editor, Web 富文本编辑器
Author: wangfupeng1988
Latest version: 5.1.25

# wangEditor editor

[English](./README-en.md)

开源 Web 富文本编辑器，开箱即用，配置简单。支持 JS Vue React 。

- [文档](https://www.wangeditor.com/)
- [demo](https://www.wangeditor.com/demo/)

![](../../docs/images/editor.png)

交流
- [提交问题和建议](https://github.com/wangeditor-team/wangEditor/issues)
- 加入 QQ 群（[官网](https://www.wangeditor.com/)有群号）
npm package: @mofangui/editor-for-vue
Description: wangEditor component for vue@next
Author: skybjf
Latest version: 5.1.12

# wangEditor for vue-next component

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/main/LICENSE) [![npm](https://img.shields.io/npm/v/@wangeditor/editor-for-vue/next.svg)](https://www.npmjs.com/package/@wangeditor/editor-for-vue/v/next) [![build status](https://github.com/wangeditor-team/wangEditor-for-vue3/actions/workflows/npm-publish.yml/badge.svg?branch=main)](https://github.com/wangeditor-team/wangEditor-for-vue3/actions)

[English documentation](./README-en.md)

## 介绍

基于 [wangEditor](https://www.wangeditor.com/) 封装的开箱即用的 [Vue3 组件](https://www.wangeditor.com/v5/for-frame.html#vue3)

- [demo](https://codesandbox.io/s/wangeditor-vue3-demo-forked-hhist5)

## 安装

```shell
yarn add @wangeditor/editor
yarn add @wangeditor/editor-for-vue@next
```

## 使用

参考[文档](https://www.wangeditor.com/v5/for-frame.html#vue3)
npm package: @mofanx/md2pdf
Description: 高兼容性 Markdown 转 PDF 工具，支持本地图片、批量转换、字体优化，命令行一键使用。
Author: mofanx
Latest version: 1.0.4

# md2pdf

> 一款支持本地图片、批量转换、字体优化和高质量排版的 Markdown 转 PDF 命令行工具。

---

## 功能特性

- 支持将单个 Markdown 文件或整个文件夹批量转换为 PDF
- 自动处理本地图片，嵌入 PDF，100% 显示无丢失
- 代码块高亮、自动换行，防止内容溢出或遮挡
- 多字体兼容，适配中英文、代码等多场景
- 可自定义输出文件夹、PDF 后缀名
- 支持全局安装，一键 md2pdf 命令

---

## 安装方法

### 1. npm 作用域包安装（推荐普通用户）

```bash
npm install -g @mofanx/md2pdf
# 或 pnpm add -g @mofanx/md2pdf
```

### 2. 全局安装（开发者本地源码）

```bash
# 克隆仓库
https://github.com/mofanx/md2pdf.git
cd md2pdf

# 安装依赖
mamba install nodejs
pnpm install

# 全局安装
pnpm build # 或 tsc
pnpm add -g .
# 或 npm install -g .
```

### 3. 直接用 ts-node

```bash
pnpm dlx ts-node bin/md2pdf.ts <输入> [输出]
```

---

### 关于 Puppeteer 和 Chrome

首次安装 puppeteer 时会自动下载 Chromium（如需更小体积或用系统 Chrome，可参考 puppeteer 官方文档配置 PUPPETEER_EXECUTABLE_PATH 环境变量）。

如遇国内网络问题，可参考：

```bash
# 指定镜像源加速 puppeteer 安装
PUPPETEER_DOWNLOAD_HOST=https://npmmirror.com/mirrors/chromium/ pnpm install
```

或直接使用系统已安装的 Chrome/Chromium。

详细说明见：https://pptr.dev/guides/configuration

---

## 使用方法

### 单文件转换

```bash
md2pdf test.md test.pdf
```

### 批量转换（目录）

```bash
md2pdf ./docs ./out
# 会将 docs 下所有 .md 转为 out 下同目录结构的 .pdf
```

### 更多参数

- `--ext <ext>` 指定输出 PDF 后缀名（默认 .pdf）

```bash
md2pdf ./docs ./out --ext .pdf
```

---

## 主要技术点

- puppeteer 渲染 HTML 转 PDF，支持本地 file:// 图片自动转 base64，彻底解决图片丢失问题
- 代码块、图片、字体等样式高度优化，适合技术文档、中文内容
- 支持多种字体优先级，兼容 JetBrains Mono、Noto Serif CJK、Maple Mono 等

---

## 常见问题

- **图片无法显示？**
  - 工具已自动将本地图片转为 base64，无需手动处理。
- **PDF 代码块显示不全？**
  - 已优化样式，自动换行、增大行高，适配所有内容。
- **字体不理想？**
  - 可在系统安装更多字体，或自定义 CSS。

---

## 贡献

欢迎提交 Issue 或 PR！

---

## License

MIT