photo-uploader
is The Front-End Photo Uploader With Previews.
yarn add -E photo-uploader
The package is available by importing its default function:
import photoUploader from 'photo-uploader'
Call this function to get the result you want.
Config
: Options for the program.
Name | Type | Description | Default |
---|---|---|---|
shouldRun | boolean | A boolean option. | true |
text* | string | A text to return. | - |
/* yarn example/ */
import photoUploader from 'photo-uploader'
(async () => {
const res = await photoUploader({
text: 'example',
})
console.log(res)
})()
example
(c) Art Deco 2019