Create an example directory in the project root and create a simple example that uses this library.
The sample meets the following requirements.
- Drag and drop images to upload them.
- Output the value of the uploaded dhash as a string to DOM.
- Allow the example code to be built with esbuild. (call esbuild by npx.)
- The web server will document how to set up the server so that it can be validated by the built-in server, such as
php -S or python -m or npx http-server.
Create an example directory in the project root and create a simple example that uses this library.
The sample meets the following requirements.
php -Sorpython -mornpx http-server.