Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-raspistill

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-raspistill

Node wrapper for taking photos using Raspberry Pi raspistill app.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42
increased by23.53%
Maintainers
1
Weekly downloads
 
Created
Source

node-raspistill

Simple wrapper for taking photos using Raspberry Pi raspistill app.

Module is written in typescript and provides type definitions out-of-the-box.

Tested with Raspberry Pi 2 B (Raspbian OS), and Raspberry Camera Module v2.

##Usage

const Raspistill = require('node-raspistill').Raspistill;
const camera = new Raspistill();

camera.takePhoto().then((photo) => {
    ...
});

Or (if you use imports):

import {Raspistill} from 'node-raspistill';
const camera = new Raspistill();

camera.takePhoto().then((photo) => {
    ...
});

##Docs

new Raspistill([options]): Raspistill instance

Options - object, that can contain:

verticalFlip: boolean, defaults to false;

horizontalFlip: boolean, defaults to false;

outputDir: string, output directory where photos will be stored. Defaults to ./photos;

fileName: string, name for photo file, if not exixts, defaults to new Date.now() + file encoding;

encoding: string, photo encoding, can be 'jpg', 'bpm', 'gif', 'png', defaults to jpg;

width: number, not exists by default;

height: number, not exists by default;

{Raspistill instance}.takePhoto([options]): Promise

Options - same object provided for configuring current photo shoot.

Keywords

FAQs

Package last updated on 05 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc