Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "pi-camera", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "A very lightweight promise based Node.js wrapper for the native Raspberry Pi Camera CLI tools.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,3 +28,3 @@ # PiCamera | ||
myCamera.snap(); | ||
.then((msg) => { | ||
.then((result) => { | ||
// Your picture was captured | ||
@@ -49,4 +49,8 @@ }) | ||
myCamera.record() | ||
.then((result) => process.send({ rsp: 'success', result })) | ||
.catch((error) => process.send({ rsp: 'failure', error })); | ||
.then((result) => { | ||
// Your video was captured | ||
}) | ||
.catch((error) => { | ||
// Handle your error | ||
}); | ||
``` | ||
@@ -53,0 +57,0 @@ |
61
7871