open-index/open-npm huggingface dataset:
npm package: @mdebeljuh/raspberry-pi-camera-native
Description: Use your Raspberry Pi Camera Module with Node.js
Author: Sandeep Mistry
Latest version: 0.0.2

# node-raspberry-pi-camera-native

- Forked to release a fixed version for the 'callback is not defined' issue.
- All dependencies have also been updated.
- This package name is @zebrajaeger/node-raspberry-pi-camera-native

Use your [Raspberry Pi Camera Module](https://www.raspberrypi.org/documentation/hardware/camera/README.md) with [Node.js](https://nodejs.org)

**NOTE:** Currently only supports still image capture.

## Prerequisites

 * Hardware
   * Raspberry Pi
   * [Raspberry Pi Camera module](https://www.raspberrypi.org/documentation/hardware/camera/README.md)

 * Software
   * [Raspberry Pi camera enabled](https://www.raspberrypi.org/documentation/configuration/camera.md)
   * Node.js 8 or later installed

## Install

```
npm install raspberry-pi-camera-native
```

## Usage

```javascript
// require module
const raspberryPiCamera = require('raspberry-pi-camera-native');

// add frame data event listener
raspberryPiCamera.on('frame', (frameData) => {
  // frameData is a Node.js Buffer
  // ...
});

// start capture
raspberryPiCamera.start();
```

### Events

#### Data

Listen for raw data events (partial frame data), `data` is a [Node.js Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)

```javascript
raspberryPiCamera.on('data', callback(data));
```

#### Frame

Listen for frame events (full frame data), `frameData` is a [Node.js Buffer](https://nodejs.org/dist/latest/docs/api/buffer.html)

```javascript
raspberryPiCamera.on('frame', callback(frameData));
```

### Actions

#### Start Capture

```javascript
raspberryPiCamera.start(options, callback);
```

Options is a object, with the following defaults:
```javascript
{
  width: 1280,
  height: 720,
  fps: 30,
  encoding: 'JPEG',
  quality: 75
}
```

Supported values:
 * `width`: `32` to `2592` (v1 camera) or `3280` (v2 camera)
 * `height`: `16` to `1944` (v1 camera) or `2464` (v2 camera)
 * `fps`: `1` to `90`
 * `encoding`: `'JPEG'` (hardware accelerated), `'GIF'`, `'PNG'`, `'PPM'`, `'TGA'`, `'BMP'` (see [mmal_encodings.h](https://github.com/raspberrypi/userland/blob/master/interface/mmal/mmal_encodings.h) for others)
 * `quality`: 1 - 100 (JPEG encoding quality)

#### Pause Capture

```javascript
raspberryPiCamera.pause(callback);
```

#### Resume Capture

```javascript
raspberryPiCamera.resume(callback);
```

#### Stop Capture

```javascript
raspberryPiCamera.stop(callback);
```
npm package: @mdekrey/jotai-react-signals
Description: 👻 React signals using Jotai
Author: Matt DeKrey
Latest version: 0.4.1
Deprecated: Package moved to @principlestudios/jotai-react-signals

# React Signals with Jotai

This provides a simple way to bind Jotai atoms to React intrinsic elements to get reactive pages, like the signals paradigm.

Please note that the current state of this package is a proof-of-concept; while it works quite well, there is no live demo and the API may change significantly.

Included in this package:

- Hooks for more easily working with computed Jotai state
  - `useComputedAtom` - same interface as Jotai's `computed`, but as a React hook with no dependencies
  - `useAsAtom` - converts a `T | Atom<T>` to an `Atom<T>` as a React hook, so your APIs can be flexible.
- Utilities for animation
  - `animationSignal` - provides updates per `requestAnimationFrame` (must subscribe to the `animationSignal` or call `manuallyUpdateAnimationFrame`)
  - `manuallyUpdateAnimationFrame` - function to manually trigger animationSignal updates when not subscribed (this prety well defeats the purpose of animations...)
  - `tweenedSignal` - tweens an `Atom<number>` via an `EasingFunction` (not provided, but see [tween.js](https://www.npmjs.com/package/@tweenjs/tween.js)'s `Easing` export for examples) using the `animationSignal`
- Utilities for binding to elements
  - `withSignal` - takes the name of a React intrinsic element and a mapping of React props to functions to update the element to create a new component that will update your element in real-time.
  - `mapProperty` - helper function for mapping a value to an element property
  - `mapAttribute` - helper function for mapping a value to an element attribute

Usage example, as a Storybook entry:

```tsx
import { Story, Meta } from '@storybook/react';
import { useMemo } from 'react';
import { useStore } from 'jotai';
import {
	tweenedSignal,
	useComputedAtom,
	mapAttribute,
	type PartialMapping,
	withSignal,
	useAsAtom,
} from '@mdekrey/jotai-react-signals';
import { Easing } from '@tweenjs/tween.js';

const sampleMapping = {
	cx: mapAttribute('cx'),
	cy: mapAttribute('cy'),
	r: mapAttribute('r'),
	strokeWidth: mapAttribute('stroke-width'),
} satisfies PartialMapping;

const AnimatedCircle = withSignal('circle', sampleMapping);

type Props = {
	size: number;
};

export default {
	title: 'Example/Jotai Signals',
	argTypes: {
		size: {
			control: {
				type: 'number',
			},
		},
	},
	parameters: {},
} as Meta<Props>;

const Template: Story<Props> = (args) => {
	const store = useStore();
	const size$ = useAsAtom(args.size);
	const tweenedSize$ = useMemo(
		() => tweenedSignal(store, size$, Easing.Quadratic.Out),
		[store, size$]
	);
	const strokeWidth$ = useComputedAtom((get) => get(tweenedSize$) / 15);
	return (
		<svg width="300px" height="300px">
			<AnimatedCircle
				cx={150}
				cy={150}
				r={atom((get) => get(tweenedSize$).toFixed(3))}
				strokeWidth={atom((get) => get(strokeWidth$).toFixed(3))}
				stroke="red"
				fill="none"
			/>
		</svg>
	);
};

export const Primary = Template.bind({});
Primary.args = {
	size: 30,
};
```
npm package: @mdekstrand/hbsinterp
Description: Asynchronous Handlebars template interpreter
Author: Michael Ekstrand
Latest version: 0.2.0

# Alternate Handlebars interpreter

[Handlebars]: https://handlebarsjs.com/

`hbsinterp` is a simple alternative [Handlebars][] interpreter, intended
primarily for cases where templates are only evaluated once (e.g. template
directives in content), not re-applying the same template to multiple contexts
(e.g. layouts).

* TypeScript-first.
* Supports asynchronous context data and helpers.
* Directly interprets the template (instead of compiling to and evaluating
  JavaScript).  This makes it slower than the original Handlebars when
  repeatedly evaluating a template, but should generally be faster when 
  evaluating a template once.

It uses the same parser as Handlebars, and directly evaluates the AST.

```typescript
import { interpret } from '@mdekstrand/hbsinterp';

let result = await interpret(templateText, {
    context: {
        var1: 'value',
    },
});
```
npm package: @mdekstrand/hyperstatic
Description: Static JSX/HyperScript implementation on top of the DOM
Author: Michael Ekstrand
Latest version: 0.9.1

# Static Configurable Hyperscript

[hyperscript]: https://github.com/hyperhype/hyperscript
[deno_dom]: https://deno.land/x/deno_dom

This is a very simple implementation of [hyperscript][] with a few useful
properties for modern environments:

- exposed as ES module
- clean, modern JavaScript with types and documentation
- test suite
- can be instantiated with different DOM implementations like [deno_dom][] or xmldom

It provides a HyperScript-compatible `h` function, along with React-compatible
`createElement`.  It also generally works fine with XML, not just HTML, for example
with [xmldom](https://www.npmjs.com/package/@xmldom/xmldom).

To use this in the browser, you need to use a transpiler that understands JSR imports,
and write:

```javascript
import { h } from '@mdekstrand/hyperstatic';

let elt = h('a.link', {href: 'https://example.com'}, 'Example');
```

If you use `esbuild` with [`esbuild-module-loader`][esb-deno], you can specify the following
options to transpile JSX to Hyperstatic-based DOM manipulations for the browser:

```javascript
{
    jsx: "automatic",
    jsxImportSource: "@mdekstrand/hyperstatic/browser",
}
```

[esb-deno]: https://jsr/@luca/esbuild-deno-loader

## Node and JSDOM

To use in Node with JSDom:

```javascript
import { h } from 'jsr:@mdekstrand/hyperstatic/jsdom';

let elt = h('a.link', {href: 'https://example.com'}, 'Example');
```

## Use with JSX

A Hyperstatic instance also exposes a React-compatible `createElement`
function, `Fragment` constant, and modern JSX runtime `jsx` and `jsxs`
functions to enable use with JSX.  You enable this with the following
in `tsconfig.json`:

```json
{
    "compilerOptions": {
        "jsx": "react-jsx",
        "jsxImportSource": "@mdekstrand/hyperstatic/jsdom"
    }
}
```
npm package: @mdekstrand/locks
Description: TypeScript lock implementations
Author: Michael Ekstrand
Latest version: 0.3.0

# Locking primitives for TypeScript

This module provides various locking primitives for modern TypeScript:

```typescript
import {Semaphore} from "@mdekstrand/locks";
const lock = new Semaphore(2);

function myContentiousTask() {
    using _lock = await lock.acquire();
    // do the work
    // the lock is automatically released at end of function!
}
```

It is heavily inspired by [asyncutil][], particularly in its API, with my own
take on the ideas and a focus on simplicity and safety over extremes in
performance (but it does try to avoid unnecessarily inefficient constructs).

It has a single dependency, [denque][], used to implement `Notify` (which in
turn is used to implement many other elements).

[asyncutil]: https://github.com/jsr-core/asyncutil
[denque]: https://github.com/invertase/denque
npm package: @mdemri/enigma-js
Description: The Javascript client for the Enigma Network
Author: Frederic Fortier
Latest version: 0.3.0

# Enigma JS

A universal Javascript client library for the Enigma Network

## Features

* Webpack 4 based.
* ES6 as a source.
* Exports in a [umd](https://github.com/umdjs/umd) format so the library works everywhere.
* ES6 test setup with [Jest](https://jestjs.io/).
* Linting with [ESLint](http://eslint.org/).

## Process

```
ES6 source files
       |
       |
    webpack
       |
       +--- babel, eslint
       |
  ready to use
     library
  in umd format
```

*Have in mind that you have to build the library before publishing. The files under the `lib` folder are the ones that should be distributed.*

## Getting started

1. Install the following packages globally:
    ```
    yarn global add ganache-cli truffle
    ```
2. Install the package dependencies

    * On the parent folder, run `yarn install` to install the project dependencies.

2. Install the client library dependencies

    * Run `yarn install` to get the client library dependencies on the current folder
  
3. [OPTIONAL] Development mode

    * Having all the dependencies installed run `yarn dev`. This command will generate an non-minified version of the library and will run a watcher so you get the compilation on file change.
  
4. Running the tests

    * Open one terminal at the root of the parent folder `enigma-contract` run the following:
    ```
    $ ganache-cli -p 9545 -i 4447 &
    ```
    * And once Ganache-cli has started, run:
    ```
    $ truffle migrate --reset
    ```
    * On a separate terminal run: 
    ```
    yarn test
    ```
    
5. Build the library

    * Run `yarn build` to produce minified version of the library. It will check code quality before building (ESLint) and it will also run all tests afterwards (see prior step) and output a code coverage report.


## Scripts

* `yarn build` - produces production version of the library under the `lib` folder
* `yarn dev` - produces development version of the library and runs a watcher
* `yarn test` - well ... it runs the tests :)
* `yarn test:watch` - same as above but in a watch mode
npm package: @mdenic/password-generator
Description: Password Generator
Author: Marko Denic
Latest version: 0.2.1

# @mdenic/password-generator

[![npm (scoped)](https://img.shields.io/npm/v/@mdenic/password-generator.svg)](https://www.npmjs.com/package/@mdenic/password-generator)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@mdenic/password-generator.svg)](https://www.npmjs.com/package/@mdenic/password-generator)
![NPM](https://img.shields.io/npm/l/@mdenic/password-generator)
![npm](https://img.shields.io/npm/dt/@mdenic/password-generator)
![GitHub top language](https://img.shields.io/github/languages/top/markoDenic/password-generator)
![GitHub last commit](https://img.shields.io/github/last-commit/markoDenic/password-generator)

Password Generator

## Install

```
$ npm install @mdenic/password-generator --save
```

## Usage

```js
var generate = require("@mdenic/password-generator");

var pass = generate();

console.log(pass); // => "gllusviuarzrdopp" //string

var pass = generate({
    length: 20,
    numbers: true,
    uppercase: true,
});
console.log(pass); // => "ZpfgmfLdw1RQ3wYgGFro" //string

```


### Options


|            Name          |                  Type                       | Default Value |
|--------------------------|---------------------------------------------|---------------|
| length                   | Integer                                     |       16      |
| numbers                  | Boolean                                     |     false     |
| symbols                  | Boolean                                     |     false     |
| uppercase                | Boolean                                     |     false     |
npm package: @mdenic/uniqid
Description: A super simple, lightning fast unique id based on the current timestamp in milliseconds, with optional prefix and suffix.
Author: Marko Denic
Latest version: 1.0.2

# @mdenic/uniqid

[![npm (scoped)](https://img.shields.io/npm/v/@mdenic/uniqid.svg)](https://www.npmjs.com/package/@mdenic/uniqid)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/@mdenic/uniqid.svg)](https://www.npmjs.com/package/@mdenic/uniqid)
![NPM](https://img.shields.io/npm/l/@mdenic/uniqid)
![npm](https://img.shields.io/npm/dt/@mdenic/uniqid)
![GitHub top language](https://img.shields.io/github/languages/top/markoDenic/uniqid)
![GitHub last commit](https://img.shields.io/github/last-commit/markoDenic/uniqid)

A super simple, lightning fast unique id based on the current timestamp in milliseconds, with optional prefix and suffix.

## Install

```
$ npm install @mdenic/uniqid
```

## Usage

```js
var uniqid = require("@mdenic/uniqid");

uniqid();
//=> "1558604880081" //string

uniqid('hello-');
//=> "hello-1558604880081" //string

uniqid('', '-world');
//=> "1558604880081-world" //string

uniqid('hello-', '-world');
//=> "hello-1558604880081-world" //string

```


### Options


|            Name          |                  Type                       | Default Value |
|--------------------------|---------------------------------------------|---------------|
| prefix                   | String                                      |       ''      |
| suffix                   | String                                      |       ''      |