open-index/open-npm huggingface dataset:
npm package: @gurinder/vue3-application-ld-json
Description: Create application/ld+json script tag
Author: Gurinder Chauhan
Latest version: 1.0.9

# Create application/ld+json tag in vue3

## Usage
```js
<script setup>
import JsonLd from '@gurinder/vue3-application-ld-json'
</script>

<template>
  <div>
    <JsonLd :json="JSON.stringify({foo: 'bar'})"/>
  </div>
</template>
```
npm package: @gurisko/sorted-array
Description: ``` npm install @gurisko/sorted-array ```
Author: Matus Gura
Latest version: 0.1.3

Sorted Array
======

An array that keeps its elements sorted with advanced comparison capabilities and a built-in support for an array of objects.

## Installation

```
npm install @gurisko/sorted-array
```

## API

#### `new SortedArray([key|compareFn])`

#### `arr.insert([element1[, ...[, elementN]]])`

#### `arr.get(index)`

#### `arr.has(value)`

#### `arr.search(value)`

#### `arr.remove(index)`

#### `arr.removeByValue(value)`

#### `arr.eq(value)`

#### `arr.gt(value)`

#### `arr.gte(value)`

#### `arr.lt(value)`

#### `arr.lte(value)`

#### `arr.toArray()`

#### `arr.clear()`
npm package: @guritso/terminal
Description: A terminal node utility for enhanced logging and error handling
Author: guritso
Latest version: 1.2.3

# @guritso/terminal

A terminal node utility for enhanced logging and error handling.

[![Node.js CI](https://github.com/guritso/terminal/actions/workflows/node.js.yml/badge.svg)](https://github.com/guritso/terminal/actions/workflows/node.js.yml)
[![NPM Package](https://github.com/guritso/terminal/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/guritso/terminal/actions/workflows/npm-publish.yml)

| example |
| ------- |
| ![example](./docs/guritso-terminal-preview.png) |

## Installation

To install the package:

```bash
npm install @guritso/terminal
```

## Usage

To use the package, import it into your project:

```javascript
const terminal = require('@guritso/terminal');
```

or ESM:

```javascript
import terminal from '@guritso/terminal';
```

```javascript
// Setup the terminal (this is necessary to use the console.error function)
terminal.setup();

// Start the terminal with a your project's specific host and port ( both are optional) its only used for the project info
terminal.start('http://localhost', 3000);

// Log an information message
terminal.log('This is an info message');

// Log a success message
terminal.pass('This is a success message');

// Log an error message (it detects if the data is an error and display it with the fail log level)
terminal.log(new Error('This is an error message'));
```

## Methods

### `terminal.setup()`

Sets up the console.error to use the terminal.log function. Every error message will be displayed with the fail log level even if you don't use the terminal.log function.

### `terminal.start(host, port)` (optional)

Displays the project info and the host and port. if you want to display the project info on start of your app, this is a nice way to do it.

- `host` (string): The host to display.
- `port` (number): The port number to display.

### `terminal.pass(data)`

Displays a success message.

- `data` (string): The message to display.

### `terminal.log(data)`

Displays a log message.

- `data` (string | Error): The message or error to display.

### `terminal.setVerbose(verbose)`

Sets the verbose level.

- `verbose` (number): The verbose level.
  - `0`: no output (does't apply for `terminal.start()`)
  - `1`: same line output (does't apply for `terminal.pass()`)
  - `2`: new line output (default)

## License

[MIT License](./LICENSE)
npm package: @gurja/create-tsconfig
Description: Create a tsconfig.json based on a few questions
Author: Leonardo Gurgel
Latest version: 0.3.0

# @gurja/create-tsconfig

Utility to create tsconfig.json files.

It contains sane defaults and asks some questions to better fit your use case.

## Usage

Prerequisites: [Node.js](https://nodejs.org)(`^18.0.0`, `^20.0.0` or `>=22.0.0`)

You can use npm/npx(shipped with Node.js).

```bash
npm init @gurja/tsconfig@latest
```

```bash
npx @gurja/create-tsconfig@latest
```
npm package: @gurja/eslint-config
Description: A simple to use ESlint configuration
Author: Leonardo Gurgel
Latest version: 6.0.0

# @gurja/eslint-config

Configuring ESLint is always annoying and can even be a nightmare sometimes.
This package includes a few opinionated configs

## Setup

You can install it with npm, Yarn or pnpm

```sh
# npm
npm i -D @gurja/eslint-config eslint

# Yarn
yarn add -D @gurja/eslint-config eslint

# pnpm
pnpm add -D @gurja/eslint-config eslint
```

Inside `eslint.config.js` (or `eslint.config.mjs` if you don't have `"type": "module"` on your `package.json`):

```javascript
import { config, base } from "@gurja/eslint-config";
import react from "@gurja/eslint-config/react";

export default config(
  base(),
  react(),
  // any other ESLint config you'd want to add as well
);
```

## Available Configs

### Base

All others configs inherit from this one.
It includes the ESLint recommended rules and TypeScript ESLint's recommended, strict, stylistic rules and their type checked counterparts.

### Node

Includes nodejs globals and:

- [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n?tab=readme-ov-file#eslint-plugin-n)

### React

Includes browser and service worker globals, and:

- [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react#readme)
- [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks#readme)
- [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#readme)
- [eslint-plugin-react-compiler](https://react.dev/learn/react-compiler#getting-started)

### Next

Includes all of [React's](#react) plugins, and:

- [@next/eslint-plugin-next](https://nextjs.org/docs/app/api-reference/config/eslint)

### Jest

Includes jest globals, and:

- [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest#readme)

## Advanced Setup

Here's a kitchen sink example:

```javascript
// eslint.configs.mjs
import { config, globals, base } from "@gurja/eslint-config";
import react from "@gurja/eslint-config/react";
import next from "@gurja/eslint-config/next";
import jest from "@gurja/eslint-config/jest";

// by default it uses the tsconfig.json at the same level as the eslint config file for type linting
export default config(
  base({ allowDefaultProject: ['*.config.js'] }), // allowDefaultProject can't include '**' patterns
  react({ files: ["packages/react-project/**/*.{ts,tsx}"] }),
  next({ files: ["packages/next-project/**/*.{ts,tsx,js,jsx}"] }), // next already includes react's rules
  jest({ disableTypeChecking: true, files: ["**/*.{test,spec}.{ts,tsx}"] }),
  {
    files: ["packages/jquery-app/**/*.js"],
    languageOptions: {
      globals: globals.jquery,
    },
  },
  {
    rules: {
      "react-compiler/react-compiler": "off", // customize your rules if you find it necessary
    }
  }
);
```
npm package: @gurjinder7/console-color
Description: Console.log in different colors for easier distinction between multiple or many console logs
Author: Gurjinder Singh
Latest version: 1.0.3

# console-color
Console.log in different colors for easier distinction between multiple or many console logs

Homepage: https://github.com/Gurjinder7/console-color#readme  :wave:

### Features:
* Console log in style and provide distinction in multiple logs
* Color all the arguments or use a single line colored heading for logging
* Log as many arguments in a single log function
* Use default yellow color or bring in other colors to the party :smirk: 
* Jsdoc documentation for all the info you need

### Colors:
    1. Y - Yellow (default)
    2. O - Orange
    3. R - Red
    4. G - Green
    5. C - Cyan
    6. B - Blue
    7. V - Violet
    8. P - Pink

### How to install
```npm i @gurjinder7/console-color```

### How to use in your React project

1. Import the functions `log` and `headlog` into the project
2. Use them to console where ever you want
3. `log` function
   1. expected syntax : `log(color, arguments_to_log)`
   2. default syntax : `log(arguments_to_log)` 
4. `headlog` function
   1. expected syntax : `headlog(heading, color, arguments_to_log)`
   2. default syntax: `headlog(heading, arguments_to_log)`
   3. `heading` is required!

### Examples:

1. `log("O", a, b, c, d)`
   1. ![alt text](<images/img2.png>)
2. `log(a,b,c)`
   1. ![alt text](<images/img3.png>)
3. `headlog("My heading", "V", a, b, c)`
   1. ![alt text](<images/img1.png>)
4. `headlog("My heading", a, b, c)`
   1. ![alt text](<images/img4.png>)



#### Report an issues! :cry:
* Please raise an issue on the package repo at: https://github.com/Gurjinder7/console-color/issues
npm package: @gurjinder7/encrypt-localstorage
Description: Functions to encode local storage values
Author: Gurjinder Singh
Latest version: 1.0.3

# Encrypt-localstorage

### Features:

* Helps you put a layer of privacy to the data that is stored on local storage.
* **Save data to local storage in a ciphertext** :blush:
* **Use plain text in the codebase for your convenience** :sunglasses:
* The encryption is not a complicated one but still is better than simply saving plain text. 
* Light weight package

#### Note: Use only with simple key-value pairs. Saving objects with it can potentially cause issues in values.

### How to install:
```npm i @gurjinder7/encrypt-localstorage```

### How to use:

* Import the package into your application as usual
* Use the functions for different features:
  * ```setLocalStorage(key, value)``` - saves your key-pair to local storage as a ciphertext
  * ```getLocalStorage(key)``` - returns the value of the key in plain text
  * ```deleteLocalStorageKey(key)``` - to delete the key from local storage
  * ```clearLocalStorage()``` - clears the local storage

### Example:
``` 
import { setLocalStorage, getLocalStorage } from 'protect-localstorage';

setlocalStorage('name', 'gurjinder'); -- saves the screenshot to the local storage

const name = getLocalStorage('name') -- returns 'gurjinder'


```

###
![alt text](<image.png>)
npm package: @gurke/sqs
Description: Cucumber step definition library for sqs testing in jest runner
Author: Shan Wong
Latest version: 0.1.6

# @gurke/sqs

A collection of cucumber step definitions to help testing sqs configuration.

## Prerequisite

1. Using Jest as a test runner
2. Using [jest-cucumber library](https://www.npmjs.com/package/jest-cucumber) for cucumber setup

## Features

Available step definitions:

```ts
given(/a (fifo|standard) queue with queue name variable "(.*)" exists/);

given(
  /the following batch of queue messages has been sent to queue with queue name variable "(.*)":/
);

then(/queue with variable name "(.*)" should have "(.*)" (message|messages)/);

then(
  /queue with variable name "(.*)" should have message with the following MessageBody and MessageAttributes/
);

then(
  /queue with variable name "(.*)" should have message with following message Body:/
);
```

## Example usage

```ts
import { autoBindSteps, loadFeatures } from 'jest-cucumber';
import {
  sqsSteps,
  sqsCleanUp,
  waitForInFlightMessagesToBeVisible,
} from '@gurke/sqs';

const features = loadFeatures(/* Your feature file(s) */);

const steps = ({ when }) => {
  when(/amazing things happen/, async () => {
    // insert execution of your amazing event(s) / action(s)

    // remember to wait for the message to be visible in the last step of your when scenario
    await waitForInFlightMessagesToBeVisible();
  });
};

afterEach(async () => {
  await sqsCleanUp();
});

autoBindSteps(features, [sqsSteps, steps]);
```

With this setup, the available step definitions can be use in your feature file.

## Default environment variables

The default value of the environment variables for AWS in this library are:
|Variable Name|Value|
| -------- | ---- |
|AWS_REGION|eu-central-1|
|TEST_SQS_ENDPOINT|http://eu-central-1.queue.localhost.localstack.cloud:4566|
|TEST_AWS_ACCESS_KEY_ID|test|
|TEST_AWS_SECRET_ACCESS_KEY|test|

If you need to pass a different value, you can configure it by overwriting it.