1.0.9 • Published 4 years ago

snap-save v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

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): 1. Save the taken snap on the local or remote database.

Demo app

  • click here for the demo app.
  • click here for editing the demo app and live reload.

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
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago