@hadeshe93/lib-browser
TypeScript icon, indicating that this package has built-in type declarations

0.10.2 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i @hadeshe93/lib-browser

Weekly Downloads

38

Version

0.10.2

License

ISC

Unpacked Size

53.7 kB

Total Files

18

Last publish

Collaborators

  • hadeshe93