🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

zazzy-browser

Package Overview
Dependencies
Maintainers
0
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zazzy-browser

A collection of general-purpose browser utilities used as higher-level building-blocks to assist in client-server communications.

2.8.3
latest
Source
npm
Version published
Weekly downloads
235
5775%
Maintainers
0
Weekly downloads
 
Created
Source

zazzy-browser (zzb)

A collection of general-purpose browser utilities used as higher-level building-blocks to assist in client-server communications. They favor Bootstrap5.

zzb is vanilla js - all prior dependencies have been removed (eg jquery and lodash). Dialogs have been retained and follow Bootstrap5 html and css.

Note: versions < 2.0.0 has been placed in branch version1. The older versions depend on jquery, lodash and bootstrap.

What is inside

zzb gets automatically loaded into the browser global cache and is referenced via zzb.

  • zzb.types: data type operations
  • zzb.uuid: uuid functions
  • zzb.strings: string functions
  • zzb.rob: uniform return object (rob) functions
  • zzb.ajax: ajax helpers with promises
  • zzb.dialogs: compatible with bootstrap5
  • zzb.perms: permissions
  • zzb.dom: helpful dom functions

zzb.ui includes

  • zzb.time: includes interval for page refresh and data-caching
  • zzb.zaction: links html attributes to the event system
  • zzb.zui: extra ui elements.

CSS

Inside zzb.zui is an optional splitter panel. It keys off the class zsplitter which is implemented as a bootstrap flex column. Some sample css follows.

.zsplitter {
    flex: none;
    width: 17px;
    /*cursor: col-resize;*/
}
.zsplitter a {
    color:#ADFF2F;
}
.zsplitter a:hover {
    color: #84c01b;
}
.zsplitter-resize {
    cursor: col-resize;
}

Usage

Include in your html page:

<script src="dist/zzb.js"></script>

Build

Run the npm script to generate javascript distribution files, including the minified version.

$ npm run dist

Testing

For dialog testing, open test/index-test.html in a browser. You should see a dialog pop-up.

Mocha tests can be run via npm.

$ npm test

MIT Licensed

Keywords

browser

FAQs

Package last updated on 09 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts