node-raspistill
Advanced tools
Comparing version 0.0.3 to 0.0.5
{ | ||
"name": "node-raspistill", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"description": "Node wrapper for taking photos using Raspberry Pi raspistill app.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -28,3 +28,5 @@ # node-raspistill | ||
##Docs | ||
### new Raspistill([options]): Raspistill instance | ||
### new Raspistill(options?: ICameraOptions): Raspistill instance | ||
Creates new Raspistill instance. | ||
Options - object, that can contain: | ||
@@ -46,3 +48,12 @@ | ||
### {Raspistill instance}.takePhoto([options]): Promise<Buffer> | ||
Options - same object provided for configuring current photo shoot. | ||
### {Raspistill instance}.takePhoto(fileName?: string): Promise | ||
Takes new photo. Returns Promise, resolving with Buffer object. | ||
### {Raspistill instance}.setOptions(options: ICameraOptions): void | ||
Sets new options for current Raspistill instance. | ||
### {Raspistill instance}.getOptions(): ICameraOptions | ||
Gets current raspistill options. | ||
### {Raspistill instance}.getOption(key: string): any | ||
Gets current raspistill option by key. |
15654
57