# snap-save

> To take snap using your computer camera and return the base64 encoded image URL.

Latest version **1.0.9** (published 2020-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install snap-save
pnpm add snap-save
yarn add snap-save
bun add snap-save
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.9 |
| Published | 2020-01-03 |
| First published | 2019-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.2.4 |
| Dependencies | 0 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Akash Agarwal |
| Maintainers | npmakash |
| Keywords | snap, ES6 Module, javascript, base64 image |

## Links

- npm: https://www.npmjs.com/package/snap-save
- Repository: https://github.com/githubakash007/snap-save
- Homepage: https://github.com/githubakash007/snap-save#readme
- Issues: https://github.com/githubakash007/snap-save/issues
- npm.io page: https://npm.io/package/snap-save

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.9 (latest) — 2020-01-03
- 1.0.8 — 2020-01-03
- 1.0.7 — 2020-01-03
- 1.0.6 — 2020-01-03
- 1.0.5 — 2020-01-03
- 1.0.4 — 2019-09-28
- 1.0.3 — 2019-09-28
- 1.0.2 — 2019-09-28
- 1.0.1 — 2019-09-28
- 1.0.0 — 2019-09-28

## 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):
  1. Save the taken snap on the local or remote database.

## Demo app
* click [here](https://angular-qxwpjd.stackblitz.io) for the demo app. 
* click [here](https://stackblitz.com/edit/angular-qxwpjd) for  editing the demo app and live  reload. 

## Installation
  ```sh
npm install snap-save --save
yarn add snap-save
bower install snap-save --save
```

 ## Usage
 ### Javascript
```javascript
const snapSave = require('snap-save');
 snapSave.startVideo((imageDataURI:string) => console.write(imageDataURI));
```
```sh
Output should be the image DataURI when you clicked the image
```
### TypeScript
```typescript
import { startVideo } from 'snap-save';
startVideo((imageDataURI:string) => console.log(imageDataURI));
```
```sh
Output should be the image DataURI when you clicked the image
```
### AMD
```javascript
define(function(require,exports,module){
  var snapSave = require('snap-save');
  snapSave.startVideo((imageDataURI:string) => console.write(imageDataURI));
});
```
```sh
Output should be the image DataURI when you clicked the image
```

---
_Source: https://npm.io/package/snap-save · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
