open-index/open-npm huggingface dataset:
npm package: @rodrigogs/ispi
Description: Check if the program is running on a Raspberry Pi
Latest version: 1.1.1

# ispi

Check if the program is running on a Raspberry Pi.

## Usage
It may be used as a lib:
> `$ npm install @rodrigogs/ispi --save`
```javascript
  const ispi = require('@rodrigogs/ispi');

  // Async
  ispi()
    .then(isPi => console.log(isPi)) // true or false
    .catch(err => console.error(err));

  // Sync
  ispi.sync(); // true or false
```

Or as a cli:
> `$ npm install @rodrigogs/ispi -g`
```bash
$ ispi
true
```

## License
[Licence](https://github.com/rodrigogs/ispi/blob/master/LICENSE) © Rodrigo Gomes da Silva
npm package: @rodrigogs/promise-pool
Description: This promise pool keeps looping `Promise.all`'s promises until the last generator item is submitted to the processor.
Author: Rodrigo Gomes da Silva
Latest version: 2.0.0

# promise-pool
This promise pool keeps looping `Promise.all`'s promises until the last generator item is submitted to the processor.

## Install
`$ npm install @rodrigogs/promise-pool`

## Usage
```javascript
const promisePool = require('@rodrigogs/promise-pool');
 
function* generatorFunction(start, end) { // Could be an async generator
  for (let i = start; i <= end; i += 1) {
    yield i;
  }
}

function processor(generatorValue) { // Could be an async function
  console.log(generatorValue);
}

(async () => {
  await promisePool({
    generator: generatorFunction(100, 1000),
    processor,
    concurrency: 10,
  });
})();
```

## License
[BSD-3-Clause](https://github.com/rodrigogs/promise-pool/blob/master/LICENSE) © Rodrigo Gomes da Silva