包详细信息

mount-image

saqqdy97MIT1.2.0

A simple function for mounting image

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

自述文件

# 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

更新日志

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