open-index/open-npm huggingface dataset:
npm package: @rcc-pkg/eslint-config
Description: ESLint Config
Latest version: 1.0.2

# 引入包(三选一)

```
npm install @rcc-pkg/eslint-config -D

yarn add @rcc-pkg/eslint-config --dev

pnpm add @rcc-pkg/eslint-config -D
```
# 项目中使用
## 安装(三选一)
```
npm install eslint -D

yarn add eslint --dev

pnpm add eslint -D
```

在项目根目录下创建 .eslintrc.json 文件
```json
{
  "root": true,
  "extends": ["@rcc-pkg/eslint-config"]
}
```
npm package: @rccpr/auth-gate
Description: A library for conditional rendering components based on authentication/authorization
Author: Garox
Latest version: 0.3.1

# auth-gate

A JSR-compliant React library for protecting views in your application with authentication gates.

Partially inspired by the Clerk [Protect component](https://github.com/clerk/javascript/blob/539fad7b80ed284a7add6cf8c4c45cf4c6a0a8b2/packages/react/src/components/controlComponents.tsx#L94).

## Installation

### From JSR (recommended)

```bash
# Deno
deno add @rccpr/auth-gate

# npm
npx jsr add @rccpr/auth-gate

# Yarn
yarn dlx jsr add @rccpr/auth-gate

# pnpm
pnpm dlx jsr add @rccpr/auth-gate

# Bun
bunx jsr add @rccpr/auth-gate
```

### From npm

```bash
# npm
npm install @rccpr/auth-gate

# Yarn
yarn add @rccpr/auth-gate

# pnpm
pnpm add @rccpr/auth-gate

# Bun
bun add @rccpr/auth-gate
```



## Development

### Prerequisites

- [Bun](https://bun.sh/) (for development)

### Setup

```bash
bun install
```

### Available Scripts

```bash
# Build for npm
bun run build

# Type checking
bun run typecheck

# Lint with Biome
bun run lint

# Fix linting issues
bun run lint:fix

# Format code
bun run format
```

### JSR Compliance

This library follows JSR's ["no slow types"](https://jsr.io/docs/about-slow-types) policy:

- ✅ All exported functions have explicit return types
- ✅ All exported types are properly declared
- ✅ `isolatedDeclarations: true` in TypeScript config
- ✅ No destructuring in exports
- ✅ No global or module augmentation


## License

MIT
npm package: @rcdoc/parser
Description: A plugin enables you to import a Markdown file as various formats on your [vite](https://github.com/vitejs/vite) project inspirt by [dumi](https://github.com/umijs/dumi).
Author: 3lang3
Latest version: 0.1.10

# MDoc core

parse markdown content.

```bash
npm i @mdoc/core
```
npm package: @rcdoc/vitejs-plugin
Description: A plugin enables you to import a Markdown file as various formats on your [vite](https://github.com/vitejs/vite) project inspirt by [dumi](https://github.com/umijs/dumi).
Author: 3lang3
Latest version: 0.2.2

# vite-plugin-mdoc

mdoc for vite

A plugin enables you to import a Markdown file as various formats on your [vite](https://github.com/vitejs/vite) project inspirt by [dumi](https://github.com/umijs/dumi).

## Setup

```
npm i -D vite-plugin-react-mdoc
```

### Config

```js
const mdoc = require('vite-plugin-react-mdoc');

module.exports = {
  plugins: [mdoc(options)],
};
```

Then you can import front matter attributes from `.md` file as default.

````md
# Hello world

```tsx
import React from 'react';

export default () => {
  const [count, setCount] = React.useState(0);
  return <button onClick={() => setCount((v) => v + 1)}>count: {count}</button>;
};
```
````

```tsx
import { MdContent, demos } from './doc.md';
```

### Type declarations

In TypeScript project, need to declare typedefs for `.md` file as you need.

```ts
declare module '*.md' {
  // When "Mode.React" is requested. VFC could take a generic like React.VFC<{ MyComponent: TypeOfMyComponent }>
  import React from 'react';
  type MDocPreviewerProps = {
    code: string;
    lang: string;
    key: string;
    dependencies: Record<
      string,
      {
        type: string;
        value: string;
        css: boolean;
      }
    >;
    meta: Record<string, any>;
    children: React.ReactNode;
  };

  const MdContent: React.VFC<{
    previewer?: (props: MDocPreviewerProps) => React.ReactNode;
  }>;
  const demos: ({ Component: React.VFC; key: string } & Record<string, any>)[];

  const frontmatter: Record<string, string>;

  const slugs: { depth: number; text: string; id: string }[];

  const filePath: string;

  // Modify below per your usage
  export { MdContent, demos, frontmatter, slugs, filePath };
}
```

Save as `vite.d.ts` for instance.

## License

MIT
npm package: @rcgen/cli
Description: The CLI of rcgen.
Author: Clemens Akens
Latest version: 0.14.0
Deprecated: Package no longer supported. Use at your own risk.

# @rcgen/cli

[![Package Version][package-badge]][package-npm]

The CLI of **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/cli
```

### Using npm

```sh
npm install @rcgen/cli
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/cli.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/cli
npm package: @rcgen/configs
Description: A collection of configuration providers for use with rcgen.
Author: Clemens Akens
Latest version: 0.13.0
Deprecated: This package is replaced by package @rcgen/managers

# @rcgen/configs

[![Package Version][package-badge]][package-npm] [![API][api-badge]][api]

A collection of configuration providers for use with **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/configs
```

### Using npm

```sh
npm install @rcgen/configs
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[api]: https://rcgen.io/@rcgen/configs/
[api-badge]: https://img.shields.io/badge/API-%40rcgen%2Fconfigs-blue.svg
[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/configs.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/configs
npm package: @rcgen/core
Description: The core functionality of rcgen.
Author: Clemens Akens
Latest version: 0.14.0
Deprecated: Package no longer supported. Use at your own risk.

# @rcgen/core

[![Package Version][package-badge]][package-npm]

The core functionality of **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/core
```

### Using npm

```sh
npm install @rcgen/core
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/core.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/core
npm package: @rcgen/filetypes
Description: A collection of common file types for use with rcgen.
Author: Clemens Akens
Latest version: 0.14.0
Deprecated: Package no longer supported. Use at your own risk.

# @rcgen/filetypes

[![Package Version][package-badge]][package-npm]

A collection of common file types for use with **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/filetypes
```

### Using npm

```sh
npm install @rcgen/filetypes
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/filetypes.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/filetypes
npm package: @rcgen/generators
Description: A collection of higher-order generators for use with rcgen.
Author: Clemens Akens
Latest version: 0.14.0
Deprecated: Package no longer supported. Use at your own risk.

# @rcgen/generators

[![Package Version][package-badge]][package-npm]

A collection of higher-order generators for use with **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/generators
```

### Using npm

```sh
npm install @rcgen/generators
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/generators.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/generators
npm package: @rcgen/managers
Description: A collection of file managers for use with rcgen.
Author: Clemens Akens
Latest version: 0.14.0
Deprecated: Package no longer supported. Use at your own risk.

# @rcgen/managers

[![Package Version][package-badge]][package-npm]

A collection of file managers for use with **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/managers
```

### Using npm

```sh
npm install @rcgen/managers
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/managers.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/managers
npm package: @rcgen/patchers
Description: A collection of higher-order patchers for use with rcgen.
Author: Clemens Akens
Latest version: 0.13.0
Deprecated: This package is replaced by package @rcgen/generators

# @rcgen/patchers

[![Package Version][package-badge]][package-npm] [![API][api-badge]][api]

A collection of higher-order patchers for use with **rcgen**.

## Installation

### Using Yarn

```sh
yarn add @rcgen/patchers
```

### Using npm

```sh
npm install @rcgen/patchers
```

---

Copyright (c) 2019, Clemens Akens. Released under the terms of the [MIT
License][license].

[api]: https://rcgen.io/@rcgen/patchers/
[api-badge]: https://img.shields.io/badge/API-%40rcgen%2Fpatchers-blue.svg
[license]: https://github.com/clebert/rcgen/blob/master/LICENSE
[package-badge]: https://img.shields.io/npm/v/@rcgen/patchers.svg
[package-npm]: https://www.npmjs.com/package/@rcgen/patchers