1.0.3 • Published 5 years ago

jshow v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

jshow-ci jshow-co jshow-dm jshow-ver

jshow-lic jshow-ct


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 needed - module loading framework Modular development framework, with async function as the core, asynchronous load page module - front-end routing Through simple configuration, the front-end routing structure is established and the single-page application is developed easily - DOM operation Simple DOM operation object, fully compatible with jQuery operation mode - gesture recognition For Mobile terminal, simple gestures can be identified in series by setting to recognize complex gestures - tcp/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 judgment - class 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 needed - module loading framework Modular development framework, with async function as the core, asynchronous load page module - front-end routing Through simple configuration, the front-end routing structure is established and the single-page application is developed easily - DOM operation Simple DOM operation object, fully compatible with jQuery operation mode - gesture recognition For Mobile terminal, simple gestures can be identified in series by setting to recognize complex gestures - tcp 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 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.


License

MIT


1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago