open-index/open-npm huggingface dataset:
npm package: @sh32my/test
Description: Super simple test framework.
Author: Michael Edwards
Latest version: 0.4.0

# @sh32my/test

Super simple asynchronous test framework npm package.

## Installing the package

Install the package from npm

```
npm i @sh32my/test
```

## Using the package in a test script

An example of all methods

```
var MyClass = {

  myMethod: function () {
    return true
  },

  error: function () {
    throw new Error('MY_ERROR')
  }

}

var test = require('@sh32my/test')

test.file('filename goes here', function () {

  test.method('MyClass.myMethod()', function () {

    test.that('it returns true', function (done) {
      if (MyClass.myMethod() !== true) throw new Error('myMethod does not return true');
      else done()
    })

  })

  test.method('MyClass.error()', function () {

    test.error('MY_ERROR', 'is thrown on call', function (done) {
      MyClass.error()
      done()
    })

  })

})
```

This will produce the following output.

```

********************************************************************************
*
*  filename goes here
*
********************************************************************************


  MyClass.myMethod()

    ✓ it returns true


  MyClass.error()

    ✓ MY_ERROR is thrown on call


  RESULTS:  2 tests
            2 passed

```

## Running a test script

To run test file just run using node

```
node my-test-file.js
```

## Authors

* **Michael Edwards** - [sh32my](https://github.com/sh32my)

## License

This project is licensed under the MIT License.
npm package: @sh4dman23/carousel
Description: ## Usage ### HTML Format ```html <div class="carousel">     <div class="image-list">         <!-- Images -->     </div>     <div class="bottom">         <button class="carousel-previous-image">             <!-- Replace with svg -->             prev       
Author: Shadman Shahab
Latest version: 1.0.1

# Carousel

## Usage
### HTML Format
```html
<div class="carousel">
    <div class="image-list">
        <!-- Images -->
    </div>
    <div class="bottom">
        <button class="carousel-previous-image">
            <!-- Replace with svg -->
            prev
        </button>
        <div class="circles">
            <!-- Replace svg in js -->
        </div>
        <button class="carousel-next-image">
            <!-- Replace with svg -->
            next
        </button>
    </div>
</div>
```
npm package: @sh4dman23/drop-down-menu
Description: Drop down menu
Author: Shadman Shahab
Latest version: 1.0.2

# Drop Down Menu

Drop down menu template

## Usage

### Installation and Setup

```bash
npm install --save @sh4dman23/drop-down-menu
```

Then, setup (in whichever way you prefer) your code to use [style.css](./style.css) for the styles and
[script.js](.script.js). For example, if you are using webpack, use the following import statement in
your main js file.

```js
import '@sh4dman23/drop-down-menu';
```

### HTML Structure

Use the following structure in your HTML code to use the drop-down:

```html
<!-- This contains the drop-down -->
<div class="dd-container">
    <div class="dd-current">
        <!-- Keep this empty -->
        <span class="dd-selected"></span>
    </div>
    <ul class="dd-list">
        <!-- Here, the value (if exists) will show up in the above span.dd-selected, else the textContent
        of the selected option -->
        <li value="Some Value">Option 1</li>

        <!-- Adding the selected attribute will automatically select this at page load.
            Adding multiple of these will result in the first being selected -->
        <li value="Option 2" selected>Option 2</li>
    </ul>
</div>
```

The selected item of the drop-down can be found anytime by selecting the `div.dd-container` and accessing
it's `dataset.selected` property. Returns the value (or textContent) of the selected option, or `null` if no
option is selected or, the value or textContent of the option are both empty.

[demo.html](./demo.html) also contains another example of it's use.