open-index/open-npm huggingface dataset:
npm package: @highflame/yara-x-darwin-x64
Description: This is the **x86_64-apple-darwin** binary for `@highflame/yara-x`
Latest version: 1.0.2

# `@highflame/yara-x-darwin-x64`

This is the **x86_64-apple-darwin** binary for `@highflame/yara-x`
npm package: @highflame/yara-x-linux-arm64-gnu
Description: This is the **aarch64-unknown-linux-gnu** binary for `@highflame/yara-x`
Latest version: 1.0.2

# `@highflame/yara-x-linux-arm64-gnu`

This is the **aarch64-unknown-linux-gnu** binary for `@highflame/yara-x`
npm package: @highflame/yara-x-linux-x64-gnu
Description: This is the **x86_64-unknown-linux-gnu** binary for `@highflame/yara-x`
Latest version: 1.0.2

# `@highflame/yara-x-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@highflame/yara-x`
npm package: @highflame/yara-x-win32-arm64-msvc
Description: This is the **aarch64-pc-windows-msvc** binary for `@highflame/yara-x`
Latest version: 1.0.2

# `@highflame/yara-x-win32-arm64-msvc`

This is the **aarch64-pc-windows-msvc** binary for `@highflame/yara-x`
npm package: @highflame/yara-x-win32-x64-msvc
Description: This is the **x86_64-pc-windows-msvc** binary for `@highflame/yara-x`
Latest version: 1.0.2

# `@highflame/yara-x-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@highflame/yara-x`
npm package: @highflying/circuit-cube
Description: A Javascript module to interface with LEGO Powered Up components.
Author: Ben Rogers
Latest version: 1.0.11

# **@highflying/circuit-cube** - A Javascript module to interface with Circuit Cubes.

### Announcements

- v1.0.0 First release

```javascript
const { PoweredUP } = require("../src");

const poweredUP = new PoweredUP();

poweredUP.on("discover", async (hub) => {
  // Wait to discover a Hub
  console.log(`Discovered ${hub.name}!`);

  await hub.connect(); // Connect to the Hub
  console.log("Connected");

  console.log("name", await hub.getName());
  await hub.setName("GWR");
  console.log("name", await hub.getName());
  console.log("battery level", hub.batteryLevel);

  console.log("voltage", await hub.getVoltage());
  await hub.setPower([250, undefined, -250]);
  await hub.sleep(500);
  await hub.stopAll();
  await hub.sleep(500);
});

poweredUP.scan(); // Start scanning for Hubs
console.log("Scanning for Hubs...");
```

### Documentation

### Node.js Installation

Node.js v12.0+ required.

```javascript
npm install @highflying/circuit-cube --save
```

node-poweredup uses the Noble BLE library by Sandeep Mistry. On macOS everything should function out of the box. On Linux and Windows there are [certain dependencies which may need installed first](https://github.com/abandonware/noble#prerequisites).

Note: node-poweredup has been tested on macOS 11.0 and Debian/Raspbian on the Raspberry Pi 4 Model B.

### Known Issues and Limitations

- On most Unix systems, you need root permissions to access Bluetooth devices. You may want to [grant the node executable access to the Bluetooth adapter](https://github.com/abandonware/noble#running-without-rootsudo-linux-specific)

### Credits

Thanks go to Nathan Kellenicki ([@nathankellenicki](https://github.com/nathankellenicki)) for node-powered on which this code was originally based.
npm package: @highhi/ifn
Description: ifn is a library that is an alternative to the switch syntax
Author: highhi
Latest version: 0.0.2

# ifn

ifn is a library that is an alternative to the switch syntax.

# Installation
```
$ npm i -S @highhi/ifn
```

# Usage

```javascript
const f = ifn([
  ['foo', 'value is string'],
  [0, 'value is number'],
  [{}, 'value is object']
  ['func', () => 'value is function']
], 'default value'); // default value is optional

console.log(f('foo'))   // value is string
console.log(f(0))       // value is number
console.log(f({}))      // value is object
console.log(f('func'))  // value is function
console.log(f([]))      // default value
```

It using [lodash.isequal](https://www.npmjs.com/package/lodash.isequal) for comparison of values.

# License
MIT © highhi