0.1.0 • Published 7 years ago
raspberry-pi-photo-camera v0.1.0
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