npm.io
1.0.3 • Published 5 years ago

get-photo-url

Licence
ISC
Version
1.0.3
Deps
0
Size
2 kB
Vulns
0
Weekly
0

An npm package for getting photo urls from html file inputs

Install

npm i -s get-photo-url

Example

<-- html -->
<input type="file" name="photo" id="addPhotoInput" />
// javascript
import getPhotoUrl from 'get-photo-url'

const addPhoto = async () => {
  const photoUrl = await getPhotoUrl('#addPhotoInput')
  // do something with photoUrl
}

Keywords