@browsers/monorepo
v1.2.0
Published
Collection of common JavaScript / TypeScript utilities for browsers
Downloads
7
Maintainers
Readme
@browsers/monorepo
Some simple utilities for browsers
Function list
- A simple function for load js/image/css/style: load-source
- A simple function for mounting css: mount-css
- A simple function for mounting javascript: mount-script
- A simple function for mounting image: mount-image
- A simple function for mounting css style codes: mount-style
Install
e.g: use load-source
# by pnpm
pnpm install load-source
# by npm
npm install -D load-source
# by yarn
yarn add load-source
Usage
General use
import loadSource from 'load-source'
loadSource('js/image/css/style', options)
- by require
const loadSource = require('load-source')
loadSource('js/image/css/style', options)
Use CDN resource
<!-- head -->
<script src="https://unpkg.com/[email protected]/dist/index.global.prod.js"></script>
Issues & Support
Please open an issue here.