@hadeshe93/lib-browser
v0.10.2
Published
A lib for browser to make programming more easily
Downloads
38
Readme
A convenient js lib for browser.
There are much excellent npm packages so that I don't really need to realize by myself. For example:
Installation
$ npm install @hadeshe93/lib-browser --save
Usage
Use it in CJS
format:
const { insertJs } = require('@hadeshe93/lib-browser');
// your application code
// ...
Use it in ESM
format:
import { insertJs } from '@hadeshe93/lib-browser';
// your application code
// ...
Use it in IIFE
format:
<script type="text/javascript" src="example.com/path/to/index.browser.iife.js"></script>
<script type="text/javascript">
const { insertJs } = hdsLibBrowser;
// your application code
// ...
</script>