furrywolfx / deno_exif Goto Github PK
View Code? Open in Web Editor NEWmigrate exif-parser to Deno
migrate exif-parser to Deno
Currently deno_exif doesn't seem to work when trying to import it from an HTTP(S) URL like so:
import { create } from 'https://deno.land/x/[email protected]/mod.ts';
If trying to use it with the above import I always get the following error:
error: Uncaught (in promise) InvalidData: invalid url scheme
throw new Deno.errors.InvalidData("invalid url scheme");
^
at fileURLToPath (https://deno.land/[email protected]/node/url.ts:53:11)
at createRequire (https://deno.land/[email protected]/node/module.ts:533:18)
at https://deno.land/x/[email protected]/mod.ts:4:17
However if I clone the repository for example under a lib/
dir in my project I can import it like this and it works without errors:
import { create } from './lib/deno_exif/mod.ts';
Using a file://
URL also seems to work fine:
import { create } from 'file:///home/haprog/repos/cli-scripts/lib/deno_exif/mod.ts';
I also tested running a local HTTP server and importing from there with:
import { create } from 'http://127.0.0.1:8081/mod.ts';
But that also resulted in the same error above.
So for some reason this only seems to work when importing from local file system path but not when importing via HTTP or HTTPS.
Tested with deno 1.23.3.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.