open-index/open-npm huggingface dataset:
npm package: @maccuaa/git-clean
Description: CLI tool for finding stale Git branches
Author: Andrew MacCuaig
Latest version: 2.2.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @maccuaa/git-clean

Keeping the number of branches in your git repository sane.

### About

Use this scipt to identify stale git branches that should be deleted. It does this by iterating over every branch
in the repository and getting the last commit author, and the date of the last commit.

# Install

1. Install git-clean from NPM.

```bash
# globally
npm i -g @maccuaa/git-clean

# in your project
npm i -D @maccuaa/git-clean
```

# Configure

Once installed, you must configure some parameters for git-clean.

It is recommended to create a `.gitcleanrc` file in the root of your project.

git-clean uses the [rc](https://github.com/dominictarr/rc) library for finding and loading configs. It is possible to define these settings in other places as well, for a list of all supported option please see the rc project.

This example also shows the default values git-clean uses.

```ini
# .gitcleanrc

#
# Required
#

# the URL to the remote Git server
REMOTE_URL =

#
# Optional
#

# comma separated list of Jira project codes that you want to display links for
JIRA_PROJECTS =

# the name of your main branch. Generally this is the _master_ branch
MAIN_BRANCH = master

# comma separated list of branches that are protected and should not be deleted.
# branches matching any of PROTECTED_BRANCHES values these values will not be displayed by git-clean.
PROTECTED_BRANCHES = HEAD, origin/master

# If you have email address updates for your git users, you can use this to map them to the correct email address.
EMAIL_ALIAS = old.com:new.com|old1.com:new1.com|old2.com:new2.com

# SMTP Settings
# see nodeemailer for more support servers
# https://github.com/nodemailer/nodemailer/blob/master/lib/well-known/services.json
SMTP_SERVER = Hotmail
SMTP_USER = <username>
SMTP_PASSWORD = <password>

# Teams Channel Webhook Connector Endpoint
# See https://docs.microsoft.com/en-us/microsoftteams/office-365-custom-connectors
TEAMS_WEBHOOK_URL = https://XXXXX.webhook.office.com/webhookb2/XXXXX
```

# Recommended Setup for large projects

For large projects with multiple developers and a large number of branches it is recommended to commit a `.gitcleanrc` file in the root of your project.

install **git-clean** as a devDependency

# Contribute
npm package: @macdeluck/typescript-estree-cli
Description: Cli tool for generating AST from typescript source files
Author: macdeluck
Latest version: 0.1.1

# typescript-estree-cli
Cli tool for generating AST from typescript source files. Based on [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint#readme).

## Installation

``` sh
npm install --save-dev @macdeluck/typescript-estree-cli
```

or install as global tool:

``` sh
npm install -g @macdeluck/typescript-estree-cli
```

or use one of [standalone downloads](https://github.com/macdeluck/typescript-estree-cli/releases/latest).

## Example

Assuming having following `src/file.ts` file:

``` ts
class Test {}
```

tool can generate following `file.ts.json`

``` json
// Note: Generated output is not pretty-formatted, it is rather single-line JSON
[
  {
    "sourceFileName": "src/file.ts",
    "body": [
      {
        "type": "ClassDeclaration",
        "id": {
          "type": "Identifier",
          "name": "Test"
        },
        "body": {
          "type": "ClassBody",
          "body": []
        },
        "superClass": null
      }
    ]
  }
]
```

## Scenarios

Generating AST for single file (or multiple files)

``` sh
typescript-estree-cli path/to/your/file.ts
typescript-estree-cli path/to/your/file1.ts path/to/your/file2.ts
```

Generating AST for all files `*.ts` from `src` directory and subdirectories
``` sh
typescript-estree-cli src/**/*.ts
```

Options
* `--outFile` - output all AST to specific file
* `--outDir` - output AST to specific dir
* `--printOutput` - prints generated file names to standard output

## Usage

**NPM global tool**

``` sh
typescript-estree-cli path/to/your/file.ts --outFile=file.ts.json
```

**NPM package script**

Add to `package.json` (scripts section):
``` json
{
  "scripts": {
    "build:ast": "typescript-estree-cli path/to/your/file.ts --outFile=file.ts.json"
  }
}
```

And run with:
``` sh
npm run build:ast
```

**Using NodeJS**
``` sh
node ./typescript-estree-cli.js path/to/your/file.ts --outDir=file.ast.json
```

**Windows**
``` pwsh
.\typescript-estree-cli.exe path/to/your/file.ts --outDir=file.ast.json
```

**Linux**
``` sh
./typescript-estree-cli path/to/your/file.ts --outDir=file.ast.json
```

**MacOS**
``` sh
./typescript-estree-cli path/to/your/file.ts --outDir=file.ast.json
```
npm package: @macder/binpackingjs
Description: 2D, 3D, 4D Bin Packing
Author: Long Nguyen
Latest version: 2.3.2

binpackingjs
------------

[![Build Status](https://api.travis-ci.org/olragon/binpackingjs.svg?branch=master)](https://travis-ci.org/olragon/binpackingjs)
[![npm version](http://img.shields.io/npm/v/binpackingjs.svg?style=flat)](https://npmjs.org/package/binpackingjs "View this project on npm")
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

binpackingjs is 2D, 3D, 4D well tested JavaScript Bin Packing library.

- 3D Bin Packing Code is porting from golang package [bp3d](https://github.com/gedex/bp3d) which is based on [this paper](http://www.cs.ukzn.ac.za/publications/erick_dube_507-034.pdf).
- 2D Bin Packing Code is porting from ruby package [bin_packing](https://github.com/mak-it/bin_packing) which is based on [this paper](http://clb.demon.fi/files/RectangleBinPack.pdf).

## Install

`yarn add binpackingjs`

## 2D Bin Packing

[2D Bin Packing Demo](https://codesandbox.io/s/XVJnv7Yg)

[![2D Bin Packing](/screenshot.png)](https://codesandbox.io/s/XVJnv7Yg)

```
const BinPacking2D = require('binpackingjs').BP2D;
const { Bin, Box, Packer } = BinPacking2D;

let bin_1 = new Bin(100, 50);
let bin_2 = new Bin(50, 50);
let boxes = [
  new Box(15, 10), // Should be added last (smaller)
  new Box(50, 45), // Fits in bin_2 better than in bin_1
  new Box(40, 40),
  new Box(200, 200), // Too large to fit
];
let packer = new Packer([bin_1, bin_2]);
let packed_boxes = packer.pack(boxes);

packed_boxes.length
=> 3
bin_1.boxes.length
=> 2
bin_1.boxes[0].label
=> '40x40 at [0x0]'
bin_1.boxes[0].label
=> '40x40 at [0x0]'
bin_1.boxes[1].label
=> '15x10 at [0x40]'
bin_2.boxes.length
=> 1
bin_2.boxes[0].label
=> '50x45 at [0x0]'
boxes[3].packed
=> false
```

## 3D Bin Packing

```
const BinPacking3D = require('binpackingjs').BP3D;

const { Item, Bin, Packer } = BinPacking3D;

let bin1 = new Bin("Le petite box", 296, 296, 8, 1000);
let item1 = new Item("Item 1", 250, 250, 2, 200);
let item2 = new Item("Item 2", 250, 250, 2, 200);
let item3 = new Item("Item 3", 250, 250, 2, 200);
let packer = new Packer();

packer.addBin(bin1);
packer.addItem(item1);
packer.addItem(item2);
packer.addItem(item3);

// pack items into bin1
packer.pack();

// item1, item2, item3
console.log(bin1.items);

// items will be empty, all items was packed
console.log(packer.items);

// unfitItems will be empty, all items fit into bin1
console.log(packer.unfitItems)
```

## License

MIT
npm package: @macdudeuk/node-red-dashboard-2-ui-compass
Description: A configurable compass widget for Node-RED Dashboard 2.0 that displays directional heading with a blob indicator
Author: macdudeuk
Latest version: 1.0.0

# @macdudeuk/node-red-dashboard-2-ui-compass

A configurable compass widget for [Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/) that displays a directional heading using a blob indicator on a ring dial.

## Features

- Clean, minimal compass dial with a blob indicator (no needle)
- Configurable cardinal point labels: none, N only, or N/E/S/W
- Configurable value display: cardinal direction, numeric degrees, both, or none
- Custom colours for the indicator blob and ring
- Adjustable ring width (labels shift inward automatically)
- Persists the last heading value across page refreshes
- Normalizes input values to the 0-360 range

## Installation

### From npm

```bash
cd ~/.node-red
npm install @macdudeuk/node-red-dashboard-2-ui-compass
```

### From a tarball

```bash
cd ~/.node-red
npm install /path/to/macdudeuk-node-red-dashboard-2-ui-compass-1.0.0.tgz
```

Restart Node-RED after installation.

## Requirements

- Node-RED >= 3.0.0
- [@flowfuse/node-red-dashboard](https://www.npmjs.com/package/@flowfuse/node-red-dashboard) >= 1.0.0
- Node.js >= 14.0.0

## Usage

1. Drag the **compass** node from the Dashboard palette onto your flow
2. Assign it to a Dashboard 2.0 group
3. Wire a node that sends a numeric `msg.payload` (degrees, 0-360)
4. Deploy and open the dashboard

## Configuration

| Property       | Description                                                      | Default     |
|----------------|------------------------------------------------------------------|-------------|
| **Group**      | Dashboard 2.0 group to render in                                 | *(required)* |
| **Label**      | Text shown above the compass                                     | `Compass`   |
| **Width**      | Widget width in grid units (1-12)                                | `3`         |
| **Height**     | Widget height in grid units                                      | `3`         |
| **Points**     | Cardinal labels on the dial: None / N only / N,E,S,W            | `NESW`      |
| **Display**    | Text below the dial: cardinal, degrees, both, or none            | `cardinal`  |
| **Indicator**  | Colour of the direction blob (default = theme primary)           | *(theme)*   |
| **Ring**       | Colour of the compass ring (default = inherited)                 | *(theme)*   |
| **Ring Width** | Stroke width of the ring (1-10)                                  | `2`         |

## Example

```
[inject (payload: 225)] --> [ui-compass]
```

The compass will show the blob pointing south-west, with "SW" displayed below the dial.

## Development

```bash
git clone https://github.com/macdudeuk2/node-red-dashboard-2-ui-compass.git
cd node-red-dashboard-2-ui-compass
npm install
npm run build
```

To install the local build into Node-RED for testing:

```bash
cd ~/.node-red
npm install /path/to/node-red-dashboard-2-ui-compass
```

Use `npm run dev` to watch for changes and rebuild automatically.

## License

[MIT](LICENSE)