open-index/open-npm huggingface dataset:
npm package: @martinzayas/kg-default-cards
Description: ## Install
Author: Ghost Foundation
Latest version: 1.1.2

# Koenig Default Cards

## Install

`npm install @tryghost/kg-default-cards --save`

or

`yarn add @tryghost/kg-default-cards`


## Usage


## Develop

This is a mono repository, managed with [lerna](https://lernajs.io/).

Follow the instructions for the top-level repo.
1. `git clone` this repo & `cd` into it as usual
2. Run `yarn` to install top-level dependencies.


## Run

- `yarn dev`


## Test

- `yarn lint` run just eslint
- `yarn test` run lint and tests




# Copyright & License

Copyright (c) 2020 Ghost Foundation - Released under the [MIT license](LICENSE).
npm package: @martip/node-red-google-apis
Description: Node-RED node for accessing the Google APIs, using the official supported client library (google-api-nodejs-client).
Author: Paolo Martino
Latest version: 1.0.4

# @martip/node-red-google-apis

A [Node-RED](https://nodered.org/) node for accessing the Google APIs, using the official supported client library ([google-api-nodejs-client](https://github.com/googleapis/google-api-nodejs-client)).

## Install

Either use the `Node-RED Menu - Manage Palette - Install`, or run the following command in your Node-RED user directory - typically `~/.node-red`

    npm install @martip/node-red-google-apis

## Usage

You choose the API and the method to call, either in the node configuration or dynamically (`msg.api` and `msg.method`).

The parameters are passed to the node in `msg.payload`.

### Response Parsing

Depending on the method called, the received buffer can be converted to a string (`msg.payload.toString()`), an object (`JSON.parse(msg.payload.toString())`) etc.

### Auth

This node requires a **Google Service Account**.

The credentials for this account can be set statically, using a shared configuration, or dynamically, passing some properties to the node.

#### Static

Paste the JSON of the account key and the required scopes in the configuration node.

#### Dynamic

Use `msg.credentials` to pass the required parameters to the node:

```javascript
msg.credentials = {
  key: '-----BEGIN PRIVATE KEY-----\n ... \n-----END PRIVATE KEY-----\n',
  email: '[your-account]@[your-project].iam.gserviceaccount.com',
  scopes: [
    'https://www.googleapis.com/auth/...',
    'https://www.googleapis.com/auth/...',
    ...
  ]
};
```

## References

- [Google Service Account](https://cloud.google.com/iam/docs/service-accounts)
- [google-api-nodejs-client](https://github.com/google/google-api-nodejs-client) - details of the official client library
- [Google APIs Explorer](https://developers.google.com/apis-explorer)
npm package: @martip/node-red-ocr
Description: Node-RED node for performing OCR on images, using tesseract.js.
Author: Paolo Martino
Latest version: 1.0.0

# @martip/node-red-ocr

A [Node-RED](https://nodered.org/) node that performs OCR on an image, using the [Tesseract.js](https://tesseract.projectnaptha.com/) library.

## Install

Either use the `Node-RED Menu - Manage Palette - Install`, or run the following command in your Node-RED user directory - typically `~/.node-red`

    npm install @martip/node-red-ocr

## Usage

You pass the image as a buffer in the `msg.payload`.

Currently, the following languages are supported:

* English
* French
* German
* Italian
* Portuguese
* Spanish
npm package: @martip/node-red-pdf-to-png
Description: Node-RED node for converting PDF pages to PNG images, using the PDF.js library.
Author: Paolo Martino
Latest version: 1.0.1

# @martip/node-red-pdf-to-png

A [Node-RED](https://nodered.org/) node that converts PDF pages to PNG images, using [PDF.js](https://mozilla.github.io/pdf.js/) and [node-canvas](https://github.com/Automattic/node-canvas).

## Install

***N.B*** If you're on an Apple Mac running on Apple Silicon (M1, M2 etc.), please read below.

Either use the `Node-RED Menu - Manage Palette - Install`, or run the following command in your Node-RED user directory - typically `~/.node-red`

    npm install @martip/node-red-pdf-to-png

### Apple Silicon

This node depends on [node-canvas](https://github.com/Automattic/node-canvas), for which an Apple Silicon (ARM Architecture) release is not available yet.

You can still use this node but you'll have to install it manually. Be sure to have [Homebrew](https://brew.sh/) installed on your Mac and follow these instructions:

~~~bash
> brew install pkg-config cairo pango libpng jpeg giflib librsvg
> git clone https://github.com/martip/node-red-pdf-to-png.git
> cd node-red-pdf-to-png
> cwd=$(pwd)
> npm uninstall canvas
> npm install
> npm install canvas
> cd ~/.node-red
> npm install $cwd
> unset cwd
~~~

Restart Node-RED when done.

Node-RED will use the local version of this package, instead of the published one. (don't remove the `node-red-pdf-to-png` folder!).

## Usage

You pass the PDF as a buffer in the `msg.payload`.

Various options can be set in the node configuration dialog:

* Pages (all, first, range)
* Zoom (10% to 1600%)
* PNG Compression level (0 to 9)
* PNG Resolution (dpi)
npm package: @martip/node-red-xlsx
Description: Converts between a XLSX formatted stream and its JavaScript object representation, in either direction.
Author: Paolo Martino
Latest version: 1.0.2

# @martip/node-red-xlsx

A [Node-RED](http://nodered.org/) node that parses a XLSX file and converts it to a JavaScript representation (object or array).

This node uses the [read-excel-file](https://www.npmjs.com/package/read-excel-file) package, by catamphetamine.

## Install

Either use the `Node-RED Menu - Manage Palette - Install`, or run the following command in your Node-RED user directory - typically `~/.node-red`

    npm install @martip/node-red-xlsx

## Usage

You pass the content of a XLSX file, as a buffer, in the `msg.payload`.

Depending on how it's configured, the node outputs a single message or a message for each parsed sheet, containing arrays or objects.
npm package: @martirosyan-kar/nestjs-prisma-graphql-crud-gen
Description: Generate CRUD resolvers from GraphQL schema with NestJS and Prisma
Author: martirosyan-kar
Latest version: 1.0.11

<div align="center">
    <img src="./icon.png" alt="icon" height="128" width="128">
</div>
Fork from 
<a href="https://github.com/mk668a/nestjs-prisma-graphql-crud-gen">mk668a/nestjs-prisma-graphql-crud-gen</a>
# NestJS Prisma GraphQL CRUD Generator

Generate CRUD resolvers from GraphQL schema with NestJS and Prisma

# Getting Started

1. Install this package in your project using:

```shell
yarn add nestjs-prisma-graphql-crud-gen
```

2. Add the generator to the schema.prisma:

```
generator custom_generator {
  provider = "nestjs-prisma-graphql-crud-gen"
  output = "../generated"
}
```

3. Run the generator

```shell
npx prisma generate
```

# Output Directory Structure

```
generated/
├── common
│   ├── enums.ts
│   ├── inputs.ts
│   └── outputs.ts
├── enums
│   └── Language.enum.ts
├── models
│   └── users.models.ts
└── users
    ├── users.args.ts
    ├── users.input.ts
    ├── users.module.ts
    ├── users.output.ts
    ├── users.resolver.ts
    └── users.service.ts
```

<a href="https://github.com/mk668a/nestjs-prisma-graphql-crud-gen/tree/main/usage/generated">Sample results here</a>

# Sample Project

<a href="https://github.com/mk668a/nestjs-graphql-starter">nestjs-graphql-starter</a>
npm package: @martonpaulo/keyforge
Description: KeyForge is a secure and flexible password generation and evaluation library for Node.js. It allows you to generate strong, cryptographically secure passwords with customizable options, and also provides a function to check the strength and security level
Author: Marton Paulo
Latest version: 1.1.1-beta

# KeyForge

[![npm version](https://img.shields.io/npm/v/@martonpaulo/keyforge.svg)](https://www.npmjs.com/package/@martonpaulo/keyforge)
[![License](https://img.shields.io/github/license/martonpaulo/keyforge.svg)](https://github.com/martonpaulo/keyforge/blob/main/LICENSE)

KeyForge is a secure and flexible password generation and evaluation library for Node.js. It allows you to generate strong, cryptographically secure passwords with customizable options, and also provides a function to check the strength and security level of existing passwords.

## Installation

To install the library, use npm:

```bash
npm install @martonpaulo/keyforge
```

## Usage

### Generate a Password

```javascript
const keyForge = require('@martonpaulo/keyforge');

const password = keyForge.generatePassword(16, { numbers: true, symbols: true });
console.log(password); // Output: "A#5h2v$-Bp7f!+D"
```

### Check Password Security

```javascript
const keyForge = require('@martonpaulo/keyforge');

const password1 = 'SecureP@ss123';
const isSecure1 = keyForge.isPasswordSecure(password1); // true

const password2 = 'weak';
const isSecure2 = keyForge.isPasswordSecure(password2); // false
```

### Options
The generatePassword function accepts an optional options object to customize password generation:

- `length`: The length of the generated password. (Default: 12)
- `numbers`: Include numbers in the password. (Default: true)
- `symbols`: Include symbols in the password. (Default: true)
- `uppercase`: Include uppercase letters in the password. (Default: true)
- `lowercase`: Include lowercase letters in the password. (Default: true)

### Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

### License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/martonpaulo/keyforge/blob/main/LICENSE) file for details.
npm package: @martpet/react-slot
Description: Pass React elements between components via Context.
Author: Martin Petrov
Latest version: 1.0.0

# react-slot

Pass React elements between components via Context.

## Usage

```
import { ContentFor, Slot, SlotProvider } from '@martpet/react-slot';

function App() {
  return (
    <SlotProvider>
      <Component1 />
      <Component2 />
      <Component3 />
    </SlotProvider>
  );
}

function Component1() {
  return (
    <div>
      <Slot name="demo" />
    </div>
  );
}

function Component2() {
  return (
    <ContentFor slot="demo">
      <p>Demo</p>
    </ContentFor>
  );
}

function Component3() {
  return (
    <ContentFor slot="demo" order={-1}>
      First
    </ContentFor>
  );
}
```
npm package: @martsis/canvas-slider
Description: Canvas slider
Author: Alexander Martsis
Latest version: 1.0.9

# Canvas slider
The slider is adaptive.

Examples of basic library settings

Importing Javascript
```js
import CanvasSlider from '@martsis/canvas-slider';
```

Minimal config
```html
<div id="slideshow">
    <img src='http://placekitten.com/800/480'>
    <img src='http://placekitten.com/800/800'>
    <img src='http://placekitten.com/480/800'>
</div>
```
```js
const sliderParams = {
    container: '#slideshow',    // main container
    width: 800,                 // width slide
    height: 640,                // height slide
}
const slider = new CanvasSlider(sliderParams);
slider.next(); // slide next
slider.prev(); // slide prev
```

The most popular configuration
```html
<div id="slideshow">
    <img src='http://placekitten.com/800/480'>
    <img src='http://placekitten.com/800/800'>
    <img src='http://placekitten.com/480/800'>
</div>
<div>
    <button id="#prev'">prev</button>
    <button id="#next">next</button>
</div>
```
```js
// params
const sliderParams = {
    container: '#slideshow',
    nextBtn: '#next',
    prevBtn: '#prev',
    width: 800,                 
    height: 640,
    pattern: {
        width: 320,
        height: 320,
        blur: 30
    },
    onNext: function() {
        console.log('next');
    },
    onPrev: function() {
        console.log('prev');
    }
}
new CanvasSlider(sliderParams);
```

Configuration with links to images
```html
<div id="slideshow"></div>
```
```js
const sliderParams = {
    container: '#slideshow',    // main container
    width: 800,                 // width slide
    height: 640,                // height slide
    slides: [
        'http://placekitten.com/680/880',
        'http://placekitten.com/681/881',
        'http://placekitten.com/680/881',
    ],
}
new CanvasSlider(sliderParams);
```
npm package: @martsis/canvas-slideshow
Description: Canvas slideshow
Author: Alexander Martsis
Latest version: 1.0.2
Deprecated: prerelease

# Canvas slideshow
```js
import CanvasSlideshow from '@martsis/canvas-slideshow';

const slideshowParams = {
    container: '#slideshow',
    nextBtn: '#next',
    prevBtn: '#prev',
    slides: [
        'http://placekitten.com/800/480',
        'http://placekitten.com/800/800',
        'http://placekitten.com/480/800',
    ],
    width: 800,
    height: 640,
    pattern: {
        width: 320,
        height: 320,
        blur: 10
    },
    drawn: true,
    onNext: function() {
        console.log('next');
    },
    onPrev: function() {
        console.log('prev');
    }
}

new CanvasSlideshow(slideshowParams);
```