1.2.0 • Published 11 months ago

mount-script v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

mount-script

A simple function for mounting javascript

NPM version Codacy Badge Test coverage npm download gzip License

Sonar

Installing

# use pnpm
$ pnpm install mount-script

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

# use yarn
$ yarn add mount-script

Usage

General use

import mountScript from 'mount-script'

mountScript('js url', options)
  1. by require
const mountScript = require('mount-script')

mountScript('js url', options)

Use CDN resource

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

Support & Issues

Please open an issue here.

License

MIT