README
snap-save
A small js library to take snap using your computer camera and return the image DataURI. future feature ( will work as time permit):
- Save the taken snap on the local or remote database.
Demo app
Installation
npm install snap-save --save
yarn add snap-save
bower install snap-save --save
Usage
Javascript
const snapSave = require('snap-save');
snapSave.startVideo((imageDataURI:string) => console.write(imageDataURI));
Output should be the image DataURI when you clicked the image
TypeScript
import { startVideo } from 'snap-save';
startVideo((imageDataURI:string) => console.log(imageDataURI));
Output should be the image DataURI when you clicked the image
AMD
define(function(require,exports,module){
var snapSave = require('snap-save');
snapSave.startVideo((imageDataURI:string) => console.write(imageDataURI));
});
Output should be the image DataURI when you clicked the image