open-index/open-npm huggingface dataset:
npm package: @moneko/cli
Description: cli
Author: moneko
Latest version: 2.18.1

# mo

[![version][version-tag]][npm-url]
[![install size][size-tag]][size-url]
[![download][download-tag]][npm-url]
[![Build][cd-tag]][cd-url]

## 安装

[![mo][install-tag]][npm-url]

[npm-url]: https://npmjs.org/package/@moneko/cli
[install-tag]: https://nodei.co/npm/@moneko/cli.png
[version-tag]: https://img.shields.io/npm/v/@moneko/cli/latest.svg?logo=npm
[size-tag]: https://packagephobia.com/badge?p=@moneko/cli@latest
[size-url]: https://packagephobia.com/result?p=@moneko/cli@latest
[download-tag]: https://img.shields.io/npm/dm/@moneko/cli.svg?logo=docusign
[cd-tag]: https://github.com/monako97/neko-cli/actions/workflows/cd.yml/badge.svg
[cd-url]: https://github.com/monako97/neko-cli/actions/workflows/cd.yml

## 使用

### 创建项目

```sh
npm create mo <app-name>
```

## 启动项目

```
mo start <app-type> <framework>
```

## 打包项目

```
mo build <app-type> <framework>
```
npm package: @moneko/convert
Description: convert js
Author: moneko
Latest version: 1.3.0

[npm-url]: https://npmjs.org/package/@moneko/convert
[install-tag]: https://nodei.co/npm/@moneko/convert.png
[version-tag]: https://img.shields.io/npm/v/@moneko/convert/latest.svg?logo=npm
[size-tag]: https://packagephobia.com/badge?p=%40moneko%2Fconvert@latest
[size-url]: https://packagephobia.com/result?p=%40moneko%2Fconvert@latest
[download-tag]: https://img.shields.io/npm/dm/%40moneko%2Fconvert.svg?logo=docusign
[x-tag]: https://img.shields.io/twitter/follow/moneko97.svg?style=social

# @moneko/convert

🐾 🐾 🐾 🐾

[![version][version-tag]][npm-url]
[![install size][size-tag]][size-url]
[![download][download-tag]][npm-url]
![x][x-tag]
[![install][install-tag]][npm-url]
![moneko-o](https://count.getloli.com/get/@moneko-o?theme=rule34)
npm package: @moneko/core
Description: @moneko/core
Author: moneko
Latest version: 4.8.5

[npm-url]: https://npmjs.org/package/@moneko/core
[install-tag]: https://nodei.co/npm/@moneko/core.png
[version-tag]: https://img.shields.io/npm/v/@moneko/core/latest.svg?logo=npm
[size-tag]: https://packagephobia.com/badge?p=%40moneko%2Fcore@latest
[size-url]: https://packagephobia.com/result?p=%40moneko%2Fcore@latest
[download-tag]: https://img.shields.io/npm/dm/%40moneko%2Fcore.svg?logo=docusign
[x-tag]: https://img.shields.io/twitter/follow/moneko97.svg?style=social

# @moneko/core

🐾 🐾 🐾 🐾

[![version][version-tag]][npm-url]
[![install size][size-tag]][size-url]
[![download][download-tag]][npm-url]
![x][x-tag]
[![install][install-tag]][npm-url]
![moneko-o](https://count.getloli.com/get/@moneko-o?theme=rule34)
npm package: @moneko/css
Description: css in js
Author: moneko
Latest version: 1.3.1

# css

css in js

> 基于 `emotion` 与 `stylis` 的 css in js

```shell
yarn add @moneko/css -S
```

## 在 web component 中使用

```javascript
import { css } from '@moneko/css';

const style = css`
  :host {
    --color: red;
  }
  p {
    color: var(--color, red);
    
    & span {
        color: green;
    }
  }
`;

function Comp() {
  return (
    <>
      <style>{style}</style>
      <p>aaa</p>
      <slot />
    </>
  );
}
```

## 插入全局样式

```javascript
import { injectGlobal } from '@moneko/css';

// 执行这段代码将样式插入到head中,返回一个消除函数
const flush = injectGlobal`
    body {
        color: red;
    }
`;

// 消除刚才插入的全局样式
flush();
```
npm package: @moneko/eslint
Description: eslint
Author: moneko
Latest version: 1.11.2

# @moneko/eslint

[![npm version](https://img.shields.io/npm/v/@moneko/eslint.svg)](https://www.npmjs.com/package/@moneko/eslint)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

一个功能强大、规则完善的 ESLint 配置包，旨在提高 JavaScript/TypeScript 代码质量和一致性。

## 特性

- 针对现代 JavaScript 和 TypeScript 项目的优化配置
- 集成 Prettier 用于代码格式化
- 智能的 import 排序规则
- 完善的代码质量和代码风格规则集
- 基于 ESLint 平面配置系统 (eslint.config.mjs)

## 安装

使用 npm:

```bash
npm install --save-dev @moneko/eslint
```

使用 yarn:

```bash
yarn add --dev @moneko/eslint
```

使用 pnpm:

```bash
pnpm add -D @moneko/eslint
```

## 快速开始

在项目根目录创建 `eslint.config.mjs` 文件:

```js
import base from '@moneko/eslint/base';

export default base.configs.recommended;
```

## 可用配置

此包提供以下几种预设配置:

- `base` - 基础配置，适用于大多数 JavaScript/TypeScript 项目
- `react` - react配置，适用于大多数 react 项目
- `vue` - vue 配置，适用于大多数 vue 项目
- `solid` - solidjs 配置，适用于大多数 solidjs 项目

## 自定义配置

您可以通过扩展默认配置并覆盖规则来自定义配置:

```js
import react from '@moneko/eslint/react'; // 使用 react 规则

export default [
  ...react,
  {
    rules: {
      // 您的自定义规则
      'no-console': 'warn',
    },
  },
];
```

## 功能特点

- **智能导入排序**: 使用 `eslint-plugin-simple-import-sort` 自动组织和排序导入语句
- **代码格式化**: 与 Prettier 无缝集成，确保代码风格一致
- **TypeScript 支持**: 针对 TypeScript 项目的特定规则和类型检查集成
- **Modern JavaScript**: 支持最新的 ECMAScript 特性和语法
- **开箱即用**: 内置有 React、Vue、Solid JS、Typescript 等语法规则

## Nodejs API 使用

```yaml
# .prettierrc.yaml
printWidth: 100
singleQuote: true
bracketSameLine: false
```

```javascript
// eslint.config.mjs
import react from '@moneko/eslint/react';

export default react;
```

```javascript
// nodejs api
import { ESLint } from '@moneko/eslint';

try {
  console.log('ESLint runing...');
  console.time('ESLint');
  const fix = false; // fix
  const lint = new ESLint({
    cache: true,
    fix: fix,
  });
  const results = await lint.lintFiles(['__tests__/*.ts', '__tests__/*.tsx']);
  const formatter = await lint.loadFormatter('stylish');
  const output = await formatter.format(results);

  if (fix) {
    await ESLint.outputFixes(results);
  }
  if (output) {
    process.stdout.write(output);
  }
  const hasErrors = results.some((result) => result.errorCount > 0);

  console.timeEnd('ESLint');
  if (hasErrors) {
    process.exit(1);
  }
} catch (error) {
  console.log(error);
}
```

## 许可证

MIT

## 作者

moneko
npm package: @moneko/mdx
Description: MDX compilation binding for Rust
Latest version: 1.0.3

# @moneko/mdx

## Install

```bash
# npm
npm install @moneko/mdx
# yarn
yarn add @moneko/mdx
# pnpm
pnpm install @moneko/mdx
```

## Usage

### mdx

异步转换mdx

```js
import { mdx } from "@moneko/mdx";

async function main() {
  const value = `
  # Hello World

  This is a demo of @moneko/mdx
  `;

  const result = await mdx({
    value,
    filepath: "xxx.mdx",
    jsx: false,
    development: true,
  });

  console.log(result);
}
```

### mdxSync

同步转换mdx

```js
import { mdxSync } from "@moneko/mdx";

function main() {
  const value = `
  # Hello World

  This is a demo of @moneko/mdx
  `;

  const result = mdxSync({
    value,
    filepath: "xxx.mdx",
    jsx: false,
    development: true,
  });

  console.log(result);
}
```

### frontmatter

异步提取md中的frontmatter

```js
import { frontmatter } from "@moneko/mdx";

async function main() {
  const value = `---
title: "Sample Title"
author: "Author Name"
---

## header

> This is some content.
`;

  const result = await frontmatter({
    value,
    filepath: "xxx.mdx",
    jsx: false,
    development: true,
  });

  console.log(result.frontmatter);
}
```

### frontmatterSync

同步提取md中的frontmatter

```js
import { frontmatterSync } from "@moneko/mdx";

function main() {
  const value = `---
title: "Sample Title"
author: "Author Name"
---

## header

> This is some content.
`;

  const result = frontmatterSync({
    value,
    filepath: "xxx.mdx",
    jsx: false,
    development: true,
  });

  console.log(result.frontmatter);
}
```

### jsxImportSource

```js
import { mdx } from "@moneko/mdx";

async function main() {
  const value = `
  # Hello World

  This is a demo of @moneko/mdx
  `;

  const result = await mdx({
    value,
    filepath: "xxx.mdx",
    jsx: false,
    development: true,
    jsxImportSource: 'preact',
    providerImportSource: '@mdx/preact'
  });

  console.log(result);
}
```

### MdxOptions

```typescript
interface MdxOptions {
  value: string
  filepath?: string
  development: boolean
  providerImportSource?: string
  jsx?: boolean
  jsxRuntime?: string
  jsxImportSource?: string
  pragma?: string
  pragmaFrag?: string
  pragmaImportSource?: string
}
```

## Credits

Thanks to [mdxjs-rs](https://github.com/wooorm/mdxjs-rs), the awesome Rust library authored by [wooorm](https://github.com/wooorm).

Also, thanks to [napi-rs](https://github.com/napi-rs/napi-rs), authored by [Brooooooklyn](https://github.com/Brooooooklyn), which is a great solution to help us build Node.js binding for Rust.
npm package: @moneko/mdx-linux-arm-gnueabihf
Description: This is the **armv7-unknown-linux-gnueabihf** binary for `@moneko/mdx`
Latest version: 1.0.3

# `@moneko/mdx-linux-arm-gnueabihf`

This is the **armv7-unknown-linux-gnueabihf** binary for `@moneko/mdx`
npm package: @moneko/mdx-linux-x64-musl
Description: This is the **x86_64-unknown-linux-musl** binary for `@moneko/mdx`
Latest version: 1.0.3

# `@moneko/mdx-linux-x64-musl`

This is the **x86_64-unknown-linux-musl** binary for `@moneko/mdx`
npm package: @moneko/mdx-win32-arm64-msvc
Description: This is the **aarch64-pc-windows-msvc** binary for `@moneko/mdx`
Latest version: 1.0.3

# `@moneko/mdx-win32-arm64-msvc`

This is the **aarch64-pc-windows-msvc** binary for `@moneko/mdx`
npm package: @moneko/mdx-win32-x64-msvc
Description: This is the **x86_64-pc-windows-msvc** binary for `@moneko/mdx`
Latest version: 1.0.3

# `@moneko/mdx-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@moneko/mdx`
npm package: @moneko/raw-import
Description: Another wasm swc raw import plugin
Author: moneko
Latest version: 1.3.0

# @moneko/raw-import

SWC 插件 - 将带 `?raw` 查询参数的导入转换为文件原始内容

[![npm version](https://img.shields.io/npm/v/@moneko/raw-import)](https://www.npmjs.com/package/@moneko/raw-import)

## 特性

- 📦 将文件内容作为字符串导入
- ⚡ SWC 原生速度
- 🛠️ 支持相对路径和 node_modules 解析

## 安装

```bash
npm install --save-dev @moneko/raw-import
# 或
yarn add -D @moneko/raw-import
# 或
pnpm add -D @moneko/raw-import
```

## 配置

在 `.swcrc` 中添加配置：

```js
// .swcrc

module.exports = {
  jsc: {
    experimental: {
      plugins: [
        [
          "@moneko/raw-import",
          {
            // 必须配置项目根目录（通常为 process.cwd()）
            rootDir: process.cwd(),
          },
        ],
      ],
    },
  },
};
```

## 使用示例

### 基本用法

```js
// 输入
import cssContent from "./styles.css?raw";

// 输出
const cssContent = "body { color: red; }";
```

### 从 node_modules 导入

```js
// 输入
import license from "some-pkg/LICENSE?raw";

// 输出
const license = "MIT License...";
```

## 注意事项

1. **路径处理**：

   - 确保路径中包含 `?raw` 查询参数

## 许可证

MIT
npm package: @moneko/solid
Description: Solid js
Author: moneko
Latest version: 2.1.2

[npm-url]: https://npmjs.org/package/@moneko/solid
[install-tag]: https://nodei.co/npm/@moneko/solid.png
[version-tag]: https://img.shields.io/npm/v/@moneko/solid/latest.svg?logo=npm
[size-tag]: https://packagephobia.com/badge?p=%40moneko%2Fsolid@latest
[size-url]: https://packagephobia.com/result?p=%40moneko%2Fsolid@latest
[download-tag]: https://img.shields.io/npm/dm/%40moneko%2Fsolid.svg?logo=docusign
[x-tag]: https://img.shields.io/twitter/follow/moneko97.svg?style=social

# @moneko/solid

🐾 🐾 🐾 🐾

[![version][version-tag]][npm-url]
[![install size][size-tag]][size-url]
[![download][download-tag]][npm-url]
![x][x-tag]
[![install][install-tag]][npm-url]
![moneko-o](https://count.getloli.com/get/@moneko-o?theme=rule34)
npm package: @moneko/utils-linux-arm-gnueabihf
Description: This is the **armv7-unknown-linux-gnueabihf** binary for `@moneko/utils`
Latest version: 0.3.3

# `@moneko/utils-linux-arm-gnueabihf`

This is the **armv7-unknown-linux-gnueabihf** binary for `@moneko/utils`
npm package: @monema/react-b2b-common
Description: >
Author: Andrea Tasso
Latest version: 1.0.5

# monema/react-b2b-common

> 

[![NPM](https://img.shields.io/npm/v/@monema/react-b2b-common.svg)](https://www.npmjs.com/package/@monema/react-b2b-common) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save @monema/react-b2b-common
```

## Usage

```jsx
import React, { Component } from 'react'

import MyComponent from '@monema/react-b2b-common'

class Example extends Component {
  render () {
    return (
      <MyComponent />
    )
  }
}
```

## License

MIT © [atasso](https://github.com/atasso)