open-index/open-npm huggingface dataset:
npm package: @nartc/schematics
Description: Nest - modern, fast, powerful node.js web framework (@schematics)
Latest version: 6.1.12

<p align="center">
  <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo_text.svg" width="320" alt="Nest Logo" /></a>
</p>

  <p align="center">A progressive <a href="http://nodejs.org" target="blank">Node.js</a> framework for building efficient and scalable server-side applications, heavily inspired by <a href="https://angular.io" target="blank">Angular</a>.</p>
    <p align="center">
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/v/@nestjs/schematics.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/l/@nestjs/schematics.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore"><img src="https://img.shields.io/npm/dm/@nestjs/schematics.svg" alt="NPM Downloads" /></a>
<a href="https://gitter.im/nestjs/nestjs-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=body_badge"><img src="https://badges.gitter.im/nestjs/nestjs.svg" alt="Gitter" /></a>

## Description

In order to help people manage their projects, the CLI tool has been created. It helps on many grounds at once, from scaffolding the project to build well-structured applications. The Nest CLI is based on the [@angular-devkit](https://github.com/angular/devkit) package. Also, there're special schematics that are dedicated to the Nest development [@nestjs/schematics](https://github.com/nestjs/schematics).


## Installation
### NPM:

```
$ npm install -g @nestjs/schematics
```

### Docker:
```
$ docker pull nestjs/cli[:version]
$ docker run -it -rm -p 3000:3000 -v $(pwd)/workspace nestjs/schematics[:version]
```

### GIT:
```
$ git clone https://github.com/nestjs/schematics.git <project>
$ cd <project>
```

With your Node runtime:
```
$ npm install
$ npm link
```

With Docker:

```
$ docker build -t nestjs/schematics .
```

## Usage

Learn more in the [official documentation](https://docs.nestjs.com/).

## Stay in touch

* CLI Author - [Thomas Ricart](https://github.com/ThomRick) and [Kamil Mysliwiec](https://github.com/kamilmysliwiec)
* Website - [https://nestjs.com](https://nestjs.com/)
* Twitter - [@nestframework](https://twitter.com/nestframework)
npm package: @nartc/tailwind-schematics
Description: A schematic that adds TailwindCSS to AngularCLI applications
Author: Chau Tran
Latest version: 2.0.0

# Angular Tailwind CSS Schematics

This schematic will add [TailwindCSS](https://tailwindcss.com/) to your [Angular](https://angular.io) application.

## Usage

```
ng add @nartc/tailwind-schematics
```

## Usage with Nx

In Nx, you can either use `nx add` or `ng add` (same as above) to use the schematics.

```
nx add @nartc/tailwind-schematics
```  

## Options
|name|type|default|description|
|----|----|-------|-----------|
|cssFlavor|string|css|The CSS flavor the project is using|

## Acknowledgement

- [Total Guide to Custom Angular Schematics](https://medium.com/@tomastrajan/total-guide-to-custom-angular-schematics-5c50cf90cdb4)
- [ng add Schematic](https://brianflove.com/2018-12-15/ng-add-schematic/)
- [@santosh](https://twitter.com/SantoshYadavDev) for quick and concise answers to my questions

## Contribution

Any contribution is welcome

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
npm package: @nartix/next-csrf
Description: A CSRF protection middleware for Next.js
Author: Feroz Faiz
Latest version: 0.1.3

# Next CSRF

A lightweight CSRF protection middleware for Next.js on the Edge Runtime. It performs a **double check** on the CSRF token by comparing the token from the request body or headers with the token stored in the cookie. You can access the token via **request header** or by reading the **cookie** value.

## Installation

```bash
npm install @nartix/next-csrf
```

## Quick Start

Below is a minimal example of how to integrate this middleware in a Next.js app:

```typescript
// middleware.ts (or middleware.js)
import { NextRequest, NextResponse } from 'next/server';
import { createNextCsrfMiddleware } from '@nartix/next-csrf';

export async function middleware(req: NextRequest) {
  const res = NextResponse.next();

  // Provide any custom options here
  const csrfOptions = {
    secret: 'your-secret-key', // Required
    // Additional options can be specified
  };

  return createNextCsrfMiddleware(req, res, csrfOptions);
}
```


## Default Configuration

Below is an example of the default configuration. You can override any of these options in the middleware:

```js
// default config

{
  headerName: 'X-CSRF-TOKEN',
  formFieldName: 'csrf_token',
  excludeMethods: ['GET', 'HEAD', 'OPTIONS'],
  algorithm: 'SHA-256',
  tokenByteLength: 32,
  separator: '.',
  enableHeaderCheckForJson: false,
  cookie: {
    name: 'CSRF-TOKEN',
    path: '/',
    httpOnly: true,
    secure: process.env.NODE_ENV === 'production',
    sameSite: 'strict',
    maxAge: 60 * 60 * 24 * 7, // 1 week
    domain: undefined,
  },
}
```

## How It Works

1. **Token Generation**: If the `CSRF-TOKEN` cookie does not exist, the middleware generates a new token and sets it as a cookie.
2. **Double Check**: It compares the token in the cookie to the token from the request—either via a form field, JSON body, or request header.
3. **Verification**: The token is then cryptographically validated with your secret.
4. **Optional Header Access**: You can configure `enableHeaderCheckForJson` to allow tokens to be read directly from headers for JSON requests.

## Error Handling

If token validation fails, the middleware automatically returns a **403 Forbidden** response with a JSON error message.

## License

MIT License. Feel free to modify and use in your projects.

---
npm package: @nartix/tiptap-inline-code-highlight
Description: Inline code highlight extension for Tiptap editor.
Author: Feroz Faiz
Latest version: 1.0.13

# @nartix/tiptap-inline-code-highlight

This package is a port of `@tiptap/extension-code-block-lowlight` but for highlighting inline codes in the TipTap editor. It uses Lowlight to highlight codes.

## Usage

```bash
npm install @nartix/tiptap-inline-code-highlight
```

## Import the extension

```javascript
import CodeInlineLowlight from '@nartix/tiptap-inline-code-highlight';
```

## Add it to your Tiptap editor

```javascript
const editor = new Editor({
  extensions: [
    CodeInlineLowlight.configure({
      lowlight,
    }),
  ],
});
```

## Demo

![Demo of Tiptap inline code highlight](image.png)
npm package: @nartoan/react-dice-roll
Description: A highly customizable dice roll package built in react.
Author: Avaneesh Tripathi
Latest version: 1.2.6

# react-dice-roll

A highly customizable dice roll package built in react.


## [Live Demo](https://codesandbox.io/s/dazzling-curie-s4tj7)

## Installation

Use the package manager [yarn](https://classic.yarnpkg.com/en/docs/install) to install `react-dice-roll`.

```bash
yarn add react-dice-roll
```

or using [npm](https://www.npmjs.com/get-npm)

```bash
npm install react-dice-roll
```


## Usage

```jsx
import Dice from 'react-dice-roll';
```

```jsx
<Dice onRoll={(value) => console.log(value)} />
```

## Usage

|     Prop     |       Type      | Default |             Description               |
| :----------: | :-------------: | :-----: | :-----------------------------------: |
| rollingTime  |     number      |   1000  | Rolling time for dice in milliseconds |
|    onRoll    | (value) => void |    -    | Function which receives the values between 1 - 6 after the dice roll |
|    triggers  |     string[]    | ['click'] | Accepts an array of key strings which replaces the default trigger of dice roll `onClick`. Multiple key strings can be passed as an array including the `click` to use multiple triggers for dice roll key. eg: ['Enter', 'a', 'click'] |
| defaultValue |  number (1-6)   |    6    | Default value of the dice before rolling |
|     size     |     number      |   250   | Dimensions of the dice in pixels |
|    sound     |     string      |    -    | URL for the sound to play on dice roll |
|   disabled   |     boolean     |    -    | Whether the dice is disabled or not |
|    faces     |    string[]     |    -    | Array of image urls for custom sides of the dice |
|    faceBg    |     string      |    -    | Custom background color for the dice face |
|  placement   | top-left, top-right, bottom-left, bottom-right | - | Placement of the device if put inside a relative positioned element |
|  cheatValue  |  number (1-6)   |    -    | Cheat Value for the dice. If passed, dice will always roll to this value |


## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## License

MIT
npm package: @narumincho/gen
Description: HTML, TypeScript, JavaScript, package.json, wasm Generator
Author: narumincho
Latest version: 1.0.7

# @narumincho/gen

[![npm version](https://badge.fury.io/js/%40narumincho%2Fgen.svg)](https://badge.fury.io/js/%40narumincho%2Fgen)

[definy](https://github.com/narumincho/definy) で HTML, TypeScript, JavaScript, package.json, wasm を生成したかったので作った.

## JsTs の 特徴

- 入力値は, 構造化されているので TypeScript の AST(抽象構文木)とは違う
- 出力した形式は人間にも読みやすい
- 予約語はあまり気にしなくて良い
- 対応している構文は一部だけ
- var などの古い構文を出力せず, 新しいスタイルのコードを生成する

サンプルコードは, https://github.com/narumincho/definy/tree/main/test のコードを見るべし
npm package: @narumincho/simple-graphql-server-common
Description: GraphQL server common library for simple_graphql_client_gen
Author: narumincho
Latest version: 0.2.0

# @narumincho/simple_graphql_server_common@v0.2.0

GraphQL server common library for https://github.com/narumincho/dart-packages/tree/main/packages/simple_graphql_client_gen