Socket
Socket
Sign inDemoInstall

zazzy-browser

Package Overview
Dependencies
0
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
85
increased by4150%
Maintainers
1
Install size
529 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 01 Jan 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc