mount-script
v1.2.0
Published
A simple function for mounting javascript
Downloads
119
Maintainers
Readme
mount-script
A simple function for mounting javascript
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)
- by require
const mountScript = require('mount-script')
mountScript('js url', options)
Use CDN resource
<!-- head -->
<script src="https://unpkg.com/[email protected]/dist/index.global.prod.js"></script>
Support & Issues
Please open an issue here.