JSPM

wsemi

1.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1829
  • Score
    100M100P100Q113311F
  • License MIT

A useful package for web-servant.

Package Exports

  • wsemi/src/arrhas.mjs
  • wsemi/src/b642str.mjs
  • wsemi/src/binstr.mjs
  • wsemi/src/cdbl.mjs
  • wsemi/src/cint.mjs
  • wsemi/src/clearXSS.mjs
  • wsemi/src/domRemove.mjs
  • wsemi/src/genID.mjs
  • wsemi/src/genPm.mjs
  • wsemi/src/haskey.mjs
  • wsemi/src/isarr.mjs
  • wsemi/src/isbol.mjs
  • wsemi/src/isearr.mjs
  • wsemi/src/iseobj.mjs
  • wsemi/src/iser.mjs
  • wsemi/src/isestr.mjs
  • wsemi/src/isfun.mjs
  • wsemi/src/isint.mjs
  • wsemi/src/isnum.mjs
  • wsemi/src/isobj.mjs
  • wsemi/src/ispint.mjs
  • wsemi/src/isstr.mjs
  • wsemi/src/j2o.mjs
  • wsemi/src/o2j.mjs
  • wsemi/src/replace.mjs
  • wsemi/src/replaceObj.mjs
  • wsemi/src/sep.mjs
  • wsemi/src/str2b64.mjs
  • wsemi/src/str2sha512.mjs
  • wsemi/src/strdelright.mjs
  • wsemi/src/strright.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (wsemi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

wsemi

A support package for web developer.

Build Status

Documentation

To view documentation or get support, visit docs.

Example

To view some examples for more understanding, visit examples:

lodash: ex-lodash.html

dayjs: ex-dayjs.html

time[time2expire, time2past]: ex-time2expire-time2past.html

cryptojs: ex-cryptojs.html

fuzzball: ex-fuzzball.html

tinycolor: ex-tinycolor.html

uaparser: ex-uaparser.html

xss: ex-xss.html

openlink: ex-openlink.html

tippyjs[with popper.js]: ex-tippyjs.html

xlsx: ex-xlsx.html

Installation

Using npm(ES6 module):

Note: wsemi depends on lodash, crypto-js, dayjs, fuzzball, @ctrl/tinycolor, ua-parser-js, xss, tippy.js, xlsx

npm i wsemi

In a browser(UMD module):

Note: umd file includes with lodash and crypto-js, by using tree-shaking for dead-code elimination

[Optional] Add script with nomodule for IE11

<script nomodule src="https://cdn.jsdelivr.net/npm/@babel/polyfill/dist/polyfill.min.js"></script>

[Optional] Add script for dayjs(or moment)

Note: include script when use some function of time

<script src="https://cdn.jsdelivr.net/npm/dayjs/dayjs.min.js"></script>
<script>
    window.ot = dayjs //dayjs(or moment) need to save as window.ot
</script>

[Optional] Add script for fuzzball

Note: include script when use fuzzfind function

<script src="https://cdn.jsdelivr.net/npm/fuzzball/dist/fuzzball.umd.min.js"></script>

[Optional] Add script for tinycolor2, it's almost same as @ctrl/tinycolor

Note: include script when use hsl or genGradientColor function

<script src="https://cdn.jsdelivr.net/npm/tinycolor2/dist/tinycolor-min.js"></script>

[Optional] Add script for ua-parser-js

Note: include script when use getUserAgent function

<script src="https://cdn.jsdelivr.net/npm/ua-parser-js/dist/ua-parser.min.js"></script>

[Optional] Add script for xss

Note: include script when use clearXSS function

<script src="https://rawgit.com/leizongmin/js-xss/master/dist/xss.js"></script>

[Optional] Add script for popper.js and tippy.js

Note: include script when use onTooltip function

<script src="https://cdn.jsdelivr.net/npm/popper.js/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tippy.js/umd/index.all.js"></script>

[Optional] Add script for xlsx

Note: include script when use downloadExcelFileFromData or getDataFromExcelFileU8Arr function

<script src="https://cdn.jsdelivr.net/npm/js-xlsx/dist/xlsx.full.min.js"></script>

Add script for wsemi

<script src="https://cdn.jsdelivr.net/npm/wsemi@1.1.1/dist/wsemi.umd.js"></script>