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 library
It's like a Swiss army knife. It helps you simplify your code. Anyone can use it to create their own tool library. -
external components
Automatically identify environmental patterns, follow the light component principle, load the following components as neededmodule loading framework
Modular development framework, with async function as the core, asynchronous load page modulefront-end routing
Through simple configuration, the front-end routing structure is established and the single-page application is developed easilyDOM operation
Simple DOM operation object, fully compatible with jQuery operation modegesture recognition
For Mobile terminal, simple gestures can be identified in series by setting to recognize complex gesturestcp/http2 service
Provide TCP/HTTP2 backend services, fully compatible with Koa@2 middleware, integrated multilingual solutions.
Feature List
-
core tool library
It's like a Swiss army knife. It helps you simplify your code. Anyone can use it to create their own tool library.core
Basic function library for a variety of simple, complex types of judgmentclass extensions
Extend the basic class structure and improve the operation mode of events, exceptions, etc.async extensions
Extend asynchronous functions to define generic asynchronous code encoding specifications
-
external components
Automatically identify environmental patterns, follow the light component principle, load the following components as neededmodule loading framework
Modular development framework, with async function as the core, asynchronous load page modulefront-end routing
Through simple configuration, the front-end routing structure is established and the single-page application is developed easilyDOM operation
Simple DOM operation object, fully compatible with jQuery operation modegesture recognition
For Mobile terminal, simple gestures can be identified in series by setting to recognize complex gesturestcp service
Provide TCP backend services, Integrated buffer processing Solutions.http2 service
Provide HTTP2 backend services, fully compatible with Koa@2 middleware, integrated multilingual solutions.
-
Tools Library
core
Basic function library for a variety of simple, complex types of judgmentCheck
—— 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 = ;console;
- 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
- according to the need to loading
// /usr/test.jsjShow;
// index.html
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.
License
Copyright (c) 2019 jShow.org