Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mount-image

saqqdy110MIT1.2.0TypeScript support: included

A simple function for mounting image

mount-image, mount-img, load-img, load-image, saqqdy

readme

mount-image

A simple function for mounting image

NPM version Codacy Badge Test coverage npm download gzip License

Sonar

Installing

# use pnpm
$ pnpm install mount-image

# use npm
$ npm install mount-image --save

# use yarn
$ yarn add mount-image

Usage

General use

import mountImage from 'mount-image'

mountImage('image url', options)
  1. by require
const mountImage = require('mount-image')

mountImage('image url', options)

Use CDN resource

<!-- head -->
<script src="https://unpkg.com/mount-image@1.2.0/dist/index.global.prod.js"></script>

Support & Issues

Please open an issue here.

License

MIT

changelog

Change Logs

2023.06.05 v1.2.0

  1. add mount-css mount-image mount-script mount-style load-source
  2. api docs: README.md