Nonviolent Pigeon Manifestation
Have ideas to improve npm?Join in the discussion! »

photo-snapper

1.1.3 • Public • Published

Photo Snapper

A npm package that allows users to take photos directly from the web and save it on their computers. Future functionality will allow users to edit and modify their photos directly from the browser. Also allows user to toggle camera if used in a mobile web browser. You can test it out here: https://photo-snapper.herokuapp.com/.


Installation guide:

Make sure you have npm installed on your computer. Execute the following command to get photo-snapper:

npm i photo-snapper

Once you have it installed, All you need are these two lines of code in your body of html file inorder for camera to work:
    <main id="camera"></main>
    <script src="index.js"></script> 

You can change css styling inside style.css.

Compatibility

For Desktop:
Browser Chrome Safari Opera Firefox Edge
Compatibility yes yes yes yes yes
Mobile:
Browser Chrome Safari Opera Firefox Edge
Compatibility yes yes ? yes yes

Features

  • Allows users to take photo directly through a web browser
  • Uses adapter software design pattern to create a polyfill such that the camera can work on mobile phone
  • Allows users to directly edit their photos through the web browser and safe on their browsers (in progress).

Install

npm i photo-snapper

DownloadsWeekly Downloads

2

Version

1.1.3

License

ISC

Unpacked Size

62.5 kB

Total Files

6

Last publish

Collaborators

  • avatar