open-index/open-npm huggingface dataset:
npm package: @guillaumearm/pi-camera
Description: A very lightweight promise based Node.js wrapper for the native Raspberry Pi Camera CLI tools.
Author: Stetson Pierce
Latest version: 1.4.2

# Pi-Camera
A _very_ lightweight promise based Node.js wrapper for the [native Raspberry Pi Camera CLI tools](https://www.raspberrypi.org/documentation/usage/camera/raspicam/README.md).

_Note: This was written with the intent of NOT being a hand holding library, but rather just give you access to execute commands on the camera in a flexible way._

## Want to Contribute or Help Out?
Feel free to head over to the GitHub page for Pi-Camera and submit comments, issues, pulls, and whatever else you'd like. I plan on adding features as I need them for my own projects so if something isn't happening fast enough for you why not fix it? (:

## Installation
```javascript
// NPM 5
npm install pi-camera

// Older NPM versions
npm install pi-camera --save
```

## Basic usage
### Raspistill (Image Capture)
```javascript
const PiCamera = require('pi-camera');
const myCamera = new PiCamera({
  mode: 'photo',
  output: `${ __dirname }/test.jpg`,
  width: 640,
  height: 480,
  nopreview: true,
});

myCamera.snap()
  .then((result) => {
    // Your picture was captured
  })
  .catch((error) => {
     // Handle your error
  });
```
### Raspivid (Video Capture)
```javascript
const PiCamera = require('pi-camera');
const myCamera = new PiCamera({
  mode: 'video',
  output: `${ __dirname }/video.h264`,
  width: 1920,
  height: 1080,
  timeout: 5000, // Record for 5 seconds
  nopreview: true,
});

myCamera.record()
  .then((result) => {
    // Your video was captured
  })
  .catch((error) => {
     // Handle your error
  });
```

__Something worth considering is that the Camera module captures videos in a .h264 format, which is raw and uncompressed. Most players do not support this format so you might want to convert your files into something like .mp4. You can read more about it [here](https://www.raspberrypi.org/documentation/usage/camera/raspicam/raspivid.md).__

## Flags and Options
The Raspistill and Raspivid commands support a good number of parameters and options.

Currently they're all stored in the same files, so you'll need to do your do diligence and make sure you're using the correct options and flags for what you're trying to do. A good list of them can be found [here](https://www.raspberrypi.org/documentation/raspbian/applications/camera.md)

### **What's the difference between Flags and Options?**
Good question!

Flags are portions of the `Raspistill` and `Raspivid` commands that are passed and require no additional input to fuction like so:
```bash
# NOTE: Not a working command
raspistill --nopreview --raw --hflip --vflip
```

Options are portions of the `Raspistill` and `Raspivid` commands that are passed and require additional input to fuction like so:
```bash
# NOTE: Not a working command
raspistill --output some/path/here --width 1080 --height 720
```

While the command line tools support many flags and options they're not all configured in this lib. If you discover one that you need but isn't supported, consider testing it, adding it and making a PR.
npm package: @guillaumebriday/vue-scroll-progress-bar
Description: Vue.js plugin for page scroll progress bar
Author: Guillaume Briday
Latest version: 1.0.0

# vue-scroll-progress-bar

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/guillaumebriday)
![](https://github.com/guillaumebriday/vue-scroll-progress-bar/workflows/Lint/badge.svg)
[![](https://img.shields.io/npm/dt/@guillaumebriday/vue-scroll-progress-bar.svg)](https://www.npmjs.com/package/@guillaumebriday/vue-scroll-progress-bar)
[![](https://img.shields.io/npm/v/@guillaumebriday/vue-scroll-progress-bar.svg)](https://www.npmjs.com/package/@guillaumebriday/vue-scroll-progress-bar)
[![](https://img.shields.io/github/license/guillaumebriday/vue-scroll-progress-bar.svg)](https://github.com/guillaumebriday/vue-scroll-progress-bar)
[![Netlify Status](https://api.netlify.com/api/v1/badges/63086bf9-f804-451e-9319-052191432063/deploy-status)](https://app.netlify.com/sites/vue-scroll-progress-bar/deploys)

## Getting started

## Install

```bash
$ npm install @guillaumebriday/vue-scroll-progress-bar --save
```

or

```bash
$ yarn add @guillaumebriday/vue-scroll-progress-bar
```

Install the plugin into Vue:
```js
import Vue from 'vue'
import VueScrollProgressBar from '@guillaumebriday/vue-scroll-progress-bar'

Vue.use(VueScrollProgressBar)
```

Or use the component directly:

```js
import { VueScrollProgressBar } from '@guillaumebriday/vue-scroll-progress-bar'

export default {
  components: {
    VueScrollProgressBar
  },

  // ...
}
```

## Basic Usage

```html
<template>
  <vue-scroll-progress-bar @complete="handleComplete" height="2rem" />
</template>
```

## Props

|key|description|default|
|:---|---|---|
| `height`|Height of the progress bar|`'.5rem'`|
|`backgroundColor`|Background property of the progress bar|`'linear-gradient(to right, #38C172, #51D88A)'`|
|`barClass`|Class attribute of the progress bar|`'{}'`|
|`containerColor`|Background property of the progress bar container|`'transparent'`|
|`zIndex`|z-index property of the progress bar container|`'50'`|
|`containerClass`|Class attribute of the progress bar container|`'{"progress-bar-container--container": true}'`|

With :

```css
.progress-bar-container--container {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}
```

`containerClass` must be used to override the `.progress-bar-container--container` default class. You can use the default `:class` syntax on the component to add classes if needed.

## Events

|key|description|
|:---|---|
| `begin`|When scroll reached 0%|
|`complete`|When scroll reached 100%|

## Develop

### Project setup
```bash
$ yarn install
$ yarn build
```

### Open example app

```bash
$ cd example
$ yarn
$ yarn serve
```

### Lint files
```bash
$ yarn lint
```

## Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

## License

This project is released under the [MIT](http://opensource.org/licenses/MIT) license.