jshow v1.0.3
Introduction
jShow is an open tool framework. It's designed to support both WebBrowser, Node.js environment, it's composed of core tool library and external components.
core tool libraryIt's like a Swiss army knife. It helps you simplify your code. Anyone can use it to create their own tool library.external componentsAutomatically identify environmental patterns, follow the light component principle, load the following components as needed -module loading frameworkModular development framework, with async function as the core, asynchronous load page module -front-end routingThrough simple configuration, the front-end routing structure is established and the single-page application is developed easily -DOM operationSimple DOM operation object, fully compatible with jQuery operation mode -gesture recognitionFor Mobile terminal, simple gestures can be identified in series by setting to recognize complex gestures -tcp/http2 serviceProvide TCP/HTTP2 backend services, fully compatible with Koa@2 middleware, integrated multilingual solutions.
Feature List
core tool libraryIt's like a Swiss army knife. It helps you simplify your code. Anyone can use it to create their own tool library. -coreBasic function library for a variety of simple, complex types of judgment -class extensionsExtend the basic class structure and improve the operation mode of events, exceptions, etc. -async extensionsExtend asynchronous functions to define generic asynchronous code encoding specificationsexternal componentsAutomatically identify environmental patterns, follow the light component principle, load the following components as needed -module loading frameworkModular development framework, with async function as the core, asynchronous load page module -front-end routingThrough simple configuration, the front-end routing structure is established and the single-page application is developed easily -DOM operationSimple DOM operation object, fully compatible with jQuery operation mode -gesture recognitionFor Mobile terminal, simple gestures can be identified in series by setting to recognize complex gestures -tcp serviceProvide TCP backend services, Integrated buffer processing Solutions. -http2 serviceProvide HTTP2 backend services, fully compatible with Koa@2 middleware, integrated multilingual solutions.Tools Library-coreBasic function library for a variety of simple, complex types of judgment -Check—— Check everything function library. -Conver—— Data Conver function library. -Dete—— Date & Time calculations functions. -Security—— Security safe function library(MD5、CRC、SHA) -Regexp—— Regexp tool function library. -String—— String tool function library.
Installation
- Install
npm install jshow- Node.js
The jShow package has an auto-load property, and a jShow object map is created in the global object after the first execution to facilitate its use in any subsequent module, so it is recommended to declare references at the top of the startup file.
const jShow = require("jshow");
console.log(jShow.version());Web Brower
jShow module is based on CMD mode for lazy loading. You need to make the call using the entry function.
The following two loading methods have slightly different effects.
- full module loading
<script type="text/javascript" src="/inc/jShow/jShow.js"></script>
<script type="text/javascript">
jShow.use(function(){
//At this time, all modules of jShow will be loaded, and the relative loading time is relatively long
});
</script>- according to the need to loading
// /usr/test.js
jShow.define(function (module, exports, require) {
// At this time, only jShow.Check and jShow.Conver modules are introduced into the module, and other modules in the jShow cannot be used
}, {module: this, exports: this}, ["Check", "Conver"], "test");// index.html
<script type="text/javascript">
jShow.use("test.js");
//Module default load /usr directory corresponding files
</script>Questions
For questions and support please use the official forum or community chat. The issue list of this repo is exclusively for bug reports and feature requests.