raspberry-pi-photo-camera
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Raspberry Pi Photo Camera

A Node.js module for taking images with the Raspberry Pi Official camera

Installation

npm install --save raspberry-pi-photo-camera

Usage

JavaScript

const camera = require('raspberry-pi-photo-camera');
 
camera.takePicture('helloPictureWorld')
  .then(() => {
    // Image file 'helloPictureWorld.jpg' saved
  })
  .catch(() => {
    // Error while taking picture
  });

TypeScript

import * as camera from 'raspberry-pi-photo-camera';
 
camera.takePicture('helloPictureWorld')
  .then(() => {
    // Image file 'helloPictureWorld.jpg' saved
  })
  .catch(() => {
    // Error while taking picture
  });

Test

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i raspberry-pi-photo-camera

Weekly Downloads

4

Version

0.1.0

License

GPL-3.0

Unpacked Size

39 kB

Total Files

10

Last publish

Collaborators

  • beaumontjonathan