vanilla-image-loader

1.0.0 • Public • Published

Vanilla image loader

This is a simple images loader utility.

Any pull request for optimisations and new additions is more than welcome.

Installing vanilla-image-loader

npm install vanilla-image-loader
    or
yarn add vanilla-image-loader

Usage

import loadImage from 'vanilla-image-loader';

loadImage('path/to/image')
    .then(({ width, height }) => {
        console.log(width, height);
    })
    .catch((error) => {
        console.log(error);
    };

Readme

Keywords

Package Sidebar

Install

npm i vanilla-image-loader

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

291 kB

Total Files

30

Last publish

Collaborators

  • ionut.cirja