open-index/open-npm huggingface dataset:
npm package: @jeremiahblanch/react-scanner
Description: QRCode and Barcode scanner component for React apps
Author: Jeremiah Blanch
Latest version: 1.1.9

# React QR Scanner

Forked from `@alzera/react-scanner`. [https://github.com/alzera/react-scanner.git]

Differences within this fork:
1. Prettier camera (device) chooser. Only shows when there are multiple devices. Use the HTML `<select>` element which displays nicely on phones. Probably doesn't look great on desktop but most desktops do not have multiple cameras.
1. When the user chooses their camera (device), the choice is stored in localStorage and retrieved the next time. This makes better UX for using the tool over and over again.
1. Removes the components `DropZone` (for uploading an image instead of using the camera) and `BarcodeScanner` (a wrapper for `Scanner` that uses the `DropZone`). Now you can just use `Scanner`.
npm package: @jeremiak/p-exec
Description: Promisified child_process.exec()
Author: @jeremiak
Latest version: 1.0.2

# @jeremiak/p-exec

Promisified `exec` from the `child_process` module from the Node standard library.

## Usage

The default export is a function and the signature matches that of [`child_process`](https://nodejs.org/api/child_process.html#child_processexeccommand-options-callback), without a callback.

The first parameter passed to the function is the command to execute, the second, optional parameter is any options to be passed along to `exec` from `child_process`.

For example:

```js
import exec from "@jeremiak/p-exec"

const result = await exec('echo "hi"')
console.log(result.trim()) // "hi"
```