Package Exports
- wsemi
- wsemi/src/alive.mjs
- wsemi/src/arrhas.mjs
- wsemi/src/b642str.mjs
- wsemi/src/binstr.mjs
- wsemi/src/blob2u8arr.mjs
- wsemi/src/cbol.mjs
- wsemi/src/cdbl.mjs
- wsemi/src/cint.mjs
- wsemi/src/clearXSS.mjs
- wsemi/src/cstr.mjs
- wsemi/src/delay.mjs
- wsemi/src/domAlert.mjs
- wsemi/src/domCancelEvent.mjs
- wsemi/src/domDetect.mjs
- wsemi/src/domFadeIn.mjs
- wsemi/src/domFadeOut.mjs
- wsemi/src/domRemove.mjs
- wsemi/src/evem.mjs
- wsemi/src/execScript.mjs
- wsemi/src/fsCreateFolder.mjs
- wsemi/src/fsGetFilesInFolder.mjs
- wsemi/src/fsIsFile.mjs
- wsemi/src/fsIsFolder.mjs
- wsemi/src/genID.mjs
- wsemi/src/genPm.mjs
- wsemi/src/getEnv.mjs
- wsemi/src/getGlobal.mjs
- wsemi/src/haskey.mjs
- wsemi/src/isEle.mjs
- wsemi/src/isEmail.mjs
- wsemi/src/isarr.mjs
- wsemi/src/isbol.mjs
- wsemi/src/isearr.mjs
- wsemi/src/iseobj.mjs
- wsemi/src/iser.mjs
- wsemi/src/isernot.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/istimeTZ.mjs
- wsemi/src/j2o.mjs
- wsemi/src/now2str.mjs
- wsemi/src/now2strp.mjs
- wsemi/src/o2j.mjs
- wsemi/src/obj2str.mjs
- wsemi/src/obj2u8arr.mjs
- wsemi/src/pm2resolve.mjs
- wsemi/src/pmMap.mjs
- wsemi/src/pmQueue.mjs
- wsemi/src/pmSeries.mjs
- wsemi/src/queue.mjs
- wsemi/src/replace.mjs
- wsemi/src/replaceObj.mjs
- wsemi/src/sep.mjs
- wsemi/src/str2b64.mjs
- wsemi/src/str2obj.mjs
- wsemi/src/str2sha512.mjs
- wsemi/src/strdelleft.mjs
- wsemi/src/strdelright.mjs
- wsemi/src/strright.mjs
- wsemi/src/tinycolor.mjs
- wsemi/src/treeObj.mjs
- wsemi/src/u8arr2obj.mjs
- wsemi/src/urlParse.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.
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
lodash: ex-lodash.html [source code]
dayjs: ex-dayjs.html [source code]
cryptojs: ex-cryptojs.html [source code]
fuzzball: ex-fuzzball.html [source code]
fuzzball[dynamic import]: ex-fuzzball-dynamic.html [source code]
obj2u8arr & u8arr2obj: ex-tobj2u8arr-u8arr2obj.html [source code]
tinycolor: ex-tinycolor.html [source code]
uaparser: ex-uaparser.html [source code]
uaparser[dynamic import]: ex-uaparser-dynamic.html [source code]
xss: ex-xss.html [source code]
openlink: ex-openlink.html [source code]
tippyjs[with popper.js]: ex-tippyjs.html [source code]
xlsx: ex-xlsx.html [source code]
xlsx[dynamic import]: ex-xlsx-dynamic [source code]
viewerjs: ex-viewerjs.html [source code]
viewerjs[dynamic import]: ex-viewerjs-dynamic.html [source code]
html2canvas: ex-html2canvas.html [source code]
html2canvas[dynamic import]: ex-html2canvas-dynamic.html [source code]
htmlparser: ex-htmlparser.html [source code]
htmlparser[dynamic import]: ex-htmlparser-dynamic.html [source code]
scrollIntoView: ex-scrollIntoView.html [source code]
scrollTo: ex-scrollTo.html [source code]
domDropFiles: ex-domDropFiles.html [source code]
domDrag: ex-domDrag.html [source code]
domIsVisible: ex-domIsVisible.html [source code]
tesseract.js: ex-tesseract.html [source code]
tesseract.js[dynamic import]: ex-tesseract-dynamic.html [source code]
Installation
Using npm(ES6 module):
Note: wsemi is mainly dependent on
lodash,eventemitter3,crypto-js,dayjs,fuzzball,ua-parser-js,xss,xlsx,tesseract.js,htmlparserandtippy.js.
npm i wsemiIn a browser(UMD module):
Note: umd file includes with
lodash,crypto-jsandtippy.js.
[Optional] Add script with nomodule for IE11.
<script nomodule src="https://cdn.jsdelivr.net/npm/@babel/polyfill@7.12.1/dist/polyfill.min.js"></script>[Optional] Add script for dayjs(or moment).
Note: Include script when using some function of time. If include
moment, need setmomenttowindow.dayjs(ex:window.dayjs = moment), and put it before include script for wsemi.umd.js.
<script src="https://cdn.jsdelivr.net/npm/dayjs@1.x/dayjs.min.js"></script>or
<script src="https://cdn.jsdelivr.net/npm/moment@2.x/moment.min.js"></script>
<script>
window.dayjs = moment
</script>[Optional] Add script for fuzzball.
Note: Include script when using
strFindFuzzfunction, and don't include script when usingstrFindFuzzDynfunction.
<script src="https://cdn.jsdelivr.net/npm/fuzzball@1.3.1/dist/fuzzball.umd.min.js"></script>[Optional] Add script for ua-parser-js.
Note: Include script when using
getUserAgentfunction, and don't include script when usinggetUserAgentDynfunction.
<script src="https://cdn.jsdelivr.net/npm/ua-parser-js@0.7.23/dist/ua-parser.min.js"></script>[Optional] Add script for xss.
Note: Include script when using
clearXSSfunction.
<script src="https://cdn.jsdelivr.net/npm/xss@1.x/dist/xss.min.js"></script>[Optional] Add script for xlsx.
Note: Include script when using
downloadExcelFileFromDataorgetDataFromExcelFileU8Arrfunction, and don't include script when usingdownloadExcelFileFromDataDynorgetDataFromExcelFileU8ArrDynfunction.
<script src="https://cdn.jsdelivr.net/npm/xlsx@0.16.9/dist/xlsx.full.min.js"></script>[Optional] Add link and script for viewerjs.
Note: Include script when using
domShowImagesfunction, and don't include script when usingdomShowImagesDynfunction.
<link href="https://cdn.jsdelivr.net/npm/viewerjs@1.9.0/dist/viewer.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/viewerjs@1.9.0/dist/viewer.min.js"></script>[Optional] Add script for html2canvas.
Note: Include script when using
html2picfunction, and don't include script when usinghtml2picDynfunction. Use canvg with nomodule for IE11.
<script nomodule src="https://cdn.jsdelivr.net/npm/canvg@3.0.7/lib/umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.0.0-rc.7/dist/html2canvas.min.js"></script>[Optional] Add script for htmlparser.
Note: Include script when using
html2strfunction, and don't include script when usinghtml2strDynfunction.
<script src="https://cdn.jsdelivr.net/npm/htmlparser@1.7.7/lib/htmlparser.min.js"></script>[Optional] Add script for tesseract.js. It does not support IE11.
Note: Include script when using
ocrfunction, and don't include script when usingocrDynfunction.
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@2.1.4/dist/tesseract.min.js"></script>[Necessary] Add script for wsemi.
<script src="https://cdn.jsdelivr.net/npm/wsemi@1.5.74/dist/wsemi.umd.js"></script>