wsemi
v1.8.42
Published
A support package for web developer.
Maintainers
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:
blob2b64: ex-blob2b64.html [source code]
str2b64 and b642str: ex-str2b64-b642str.html [source code]
str2aes and aes2str: ex-str2aes-aes2str.html [source code]
timeTZ2expire and timeTZ2past: ex-timeTZ2expire-timeTZ2past.html [source code]
color converter: ex-colorConverter.html [source code]
domTooltip: ex-domTooltip.html [source code]
domShowImages: ex-domShowImages.html [source code]
domShowImagesDyn[dynamic import]: ex-domShowImagesDyn.html [source code]
domConvertToPic: ex-domConvertToPic.html [source code]
domRenderMarkdownMind: ex-domRenderMarkdownMind.html [source code]
domRenderMarkdownMindDyn[dynamic import]: ex-domRenderMarkdownMindDyn.html [source code]
domCompareText: ex-domCompareText.html [source code]
domScrollIntoView: ex-domScrollIntoView.html [source code]
domScrollTo: ex-domScrollTo.html [source code]
domShowInputAndGetFiles: ex-domShowInputAndGetFiles.html [source code]
domDropFiles: ex-domDropFiles.html [source code]
domDrag: ex-domDrag.html [source code]
domIsVisible: ex-domIsVisible.html [source code]
domRipple: ex-domRipple.html [source code]
strFindFuzz: ex-strFindFuzz.html [source code]
obj2u8arr & u8arr2obj: ex-obj2u8arr-u8arr2obj.html [source code]
getUserAgent: ex-getUserAgent.html [source code]
getUserAgentDyn[dynamic import]: ex-getUserAgentDyn.html [source code]
clearXSS: ex-clearXSS.html [source code]
clearXSSDyn[dynamic import]: ex-clearXSSDyn.html [source code]
openlink: ex-openLink.html [source code]
xlsx: ex-xlsx.html [source code]
xlsx[dynamic import]: ex-xlsxDyn [source code]
html2str: ex-html2str.html [source code]
execPyodide: ex-execPyodide.html [source code]
execPyodideDyn[dynamic import]: ex-execPyodideDyn.html [source code]
ocr: ex-ocr.html [source code]
ocrDyn[dynamic import]: ex-ocrDyn.html [source code]
Installation
Using npm(ES6 module):
npm i wsemiIn a browser(UMD module):
Add script for wsemi.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/wsemi.umd.js"></script>[Optional] Add script for dayjs.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js"></script>[Optional] Add script for fuse.js.
Note: Include script when using
strFindFuzzfunction.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/fuse.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/[email protected]/dist/ua-parser.min.js"></script>[Optional] Add script for xss.
Note: Include script when using
clearXSSfunction, and don't include script when usingclearXSSDynfunction.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/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/[email protected]/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/[email protected]/dist/viewer.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/viewer.min.js"></script>[Optional] Add script for @zumer/snapdom.
Note: Include script when using
domConvertToPicfunction.
<script src="https://cdn.jsdelivr.net/npm/@zumer/[email protected]/dist/snapdom.min.js"></script>[Optional] Add script for markmap.
Note: Include script when using
domRenderMarkdownMindfunction, and don't include script when usingdomRenderMarkdownMindDynfunction.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/index.min.js"></script>[Optional] Add script for htmlparser.
Note: Include script when using
html2strfunction.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/htmlparser.min.js"></script>[Optional] Add script for pyodide.
Note: Include script when using
execPyodidefunction, and don't include script when usingexecPyodideDynfunction.
<script src="https://cdn.jsdelivr.net/pyodide/v0.23.4/full/pyodide.js"></script>[Optional] Add script for tesseract.js.
Note: Include script when using
ocrfunction, and don't include script when usingocrDynfunction.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tesseract.min.js"></script>