open-index/open-npm huggingface dataset:
npm package: @sjeffff/shuffle-seed
Description: Shuffle Array based on a Seed
Author: Andre Caetano
Latest version: 1.1.6

# shuffle-seed [![npm][npm-img]][npm-url] [![travis][travis-img]][travis-url] ![filesize][file-size-img]

[npm-img]: https://img.shields.io/npm/v/shuffle-seed.svg?style=flat-square
[npm-url]: https://npmjs.org/package/shuffle-seed
[travis-img]: https://img.shields.io/travis/webcaetano/shuffle-seed.svg?style=flat-square
[travis-url]: https://travis-ci.org/webcaetano/shuffle-seed
[file-size-img]: https://badge-size.herokuapp.com/webcaetano/shuffle-seed/master/shuffle-seed.min.js.svg?style=flat-square


Nodejs module to Shuffle an Array with seed :seedling:


Array Shuffle Seed based on module [davidbau/seedrandom](https://github.com/davidbau/seedrandom)

## Installation 

```
npm install shuffle-seed
```

## Usage :

```javascript
var shuffleSeed = require('shuffle-seed');
var a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
var resp = shuffleSeed.shuffle(a,"Kappa");
// result always will be [f','y','p','i','r','v','a','x','q','e','c','b','n','j','t','z','o','l','w','m','k','g','h','u','d','s']

shuffleSeed.unshuffle(resp,"Kappa");
// result ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]
```


[![npm](https://nodei.co/npm/shuffle-seed.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/shuffle-seed)

-------------------

The MIT [License](https://raw.githubusercontent.com/webcaetano/shuffle-seed/master/LICENSE)
npm package: @sjeremich23/docs
Description: Swagger API documentation for the PWA backend API.
Author: Shane Jeremich
Latest version: 1.0.2

# 📚 Swagger Integration for Express.js

This project provides middleware for integrating Swagger UI into the Week 1 - Creating Your Backend API assignment for class WDV3322, Programming for Web Applications.

## ✨ Features

- **Swagger UI Integration**: Easily serve your Swagger documentation.
- **Customizable Configuration**: Load Swagger configuration from a JSON file.

## 📦 Installation

To install the package, use npm:

```bash
npm install @sjeremich23/docs
```

# 📖 Step-by-Step Integration

1. Import or require the middleware in your Express.js application.
   ```javascript
   import swaggerRouter from "@sjeremich23/docs";
   ```
   or
   ```javascript
   const swaggerRouter = require("@sjeremich23/docs");
   ```
2. Add the endpoint `/api-docs` to serve the Swagger UI.
   ```javascript
   app.use("/api-docs", swaggerRouter);
   ```

# 🚀 Usage

## ES6 Module

Import the middleware in your Express.js application:

```javascript
import express from "express";
import swaggerRouter from "@sjeremich23/docs";

const app = express();

app.use("/api-docs", swaggerRouter);

app.listen(3000, () => {
  console.log("Server is running on port 3000");
});
```

## CommonJS Module

Import the middleware in your Express.js application:

```javascript
const express = require("express");
const swaggerRouter = require("@sjeremich23/docs");

const app = express();

app.use("/api-docs", swaggerRouter);

app.listen(3000, () => {
  console.log("Server is running on port 3000");
});
```

# 🛠️ Configuration

The package comes with a default `swaggerConfig.json` file. You can customize it as needed.

# 📄 License

This project is licensed under the MIT License.
npm package: @sjeremich23/tests
Description: A NPM package for testing purposes
Author: Shane Jeremich
Latest version: 1.0.5

# 🧪 Backend API Validation Middleware Tests

This project includes a comprehensive set of tests for the middleware functions provided in the `@sjeremich23/pwa-utils` package. These tests ensure that the validation functions for name, email, phone number, birthday, and password work as expected.

## ✨ Features

- **API Reachability Test**: Verifies that the API is reachable and running on port 3000.
- **User Signup Endpoint Definition Test**: Verifies that the user signup endpoint is defined and setup correctly at the URL path "/signup".
- **User Signup with Valid Data Test**: Verifies that the user signup endpoint works correctly with valid data.
- **User Signup with Invalid Email Test**: Verifies that the user signup endpoint correctly handles invalid email addresses.
- **User Signup with Invalid Phone Number Test**: Verifies that the user signup endpoint correctly handles invalid phone numbers.
- **User Signup with Invalid Birthday Test**: Verifies that the user signup endpoint correctly handles invalid birthdays.
- **User Signup with Invalid Password Test**: Verifies that the user signup endpoint correctly handles invalid passwords.

## 📦 Installation

To install the package and its dependencies, use npm:

```bash
npm install @sjeremich23/tests
```

If you want to run the tests, you need to install Jest:

```bash
npm install --save-dev jest
```

Then, add a test script to your package.json:

```json
{
  "scripts": {
    "test": "jest"
  }
}
```

# 🚀 Running Tests

To run the tests provided by the `@sjeremich23/tests` package, follow these steps:

1. **Create a Test File**: Create a test file in your project directory, for example, `your-test-name.test.js`.

2. **Import the Test Suite**: In your test file, import the test suite from the `@sjeremich23/tests` package:

   ```javascript
   require("@sjeremich23/tests");
   ```

3. **Run the Tests**: Use the following npm script to run the tests:

   ```bash
   npm run test
   ```

Make sure you have Jest installed and configured in your project as described in the installation instructions.