I would like to import an external .js.
https://www.npmjs.com/package/image-size-from-base64
I tried this:
import * as img64 from '../../../../../node_modules/image-size-from-base64/index.js';
how can I do it?
npm
My website: click here. Latest version: 1.0.7, last published: a year ago. Start using image-size-from-base64 in your project by running npm i image-size-from-base64. There are no other projects in the npm registry using image-size-from-base64.