npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

basiq

v0.0.1

Published

basiq is a cross-platform JavaScript minimal library inspired by jQuery and based on new ES6 recommendation.

Downloads

2

Readme

basiq.js

basiq is a cross-platform JavaScript minimal library inspired by jQuery and based on new ES6 recommendation. Like as jQuery, basiq is designed to simplify the client-side scripting of HTML.

This library provides basic utilities as:

  • DOM selector elements
  • handle events
  • helpers for develop Ajax applications

Also provides capabilities for developers to create plugins on top of the JavaScript library.(basiq plugins)

Creator: @smorcuend
Contributors: @jmanuel_rosa
Source code: https://smorcuend.github.io/basiq

##Browser support

  • Chrome 9+
  • Firefox 6+
  • Opera 11.6+
  • Safari 6+
  • IE 10+ (9 with polyfills)

##Changelog

  • v0.0.1(work in progress)
    • Initial draft version
    • Gruntfile & bower.json added
    • source code scaffold added
    • dist & demo folder added

Polyfills ES6

  • String.prototype.contains

  • String.prototype.starsWith

  • Promise Object - https://github.com/jakearchibald/es6-promise

Other functions

  • supports: Check Support for some functionality or CSS property (detect CSS prefixes)

  • addWheelListener: Listener for mouse wheel action

API Documentation

Query selector "$(selector)" function

.all()

Get all element(s) from DOM query selector @returns {Array}

.append()

Append HTML Elements from string to DOM query selector

.addClass()

addClass to HTMLElement from DOM query selector

.removeClass()

removeClass to HTMLElement from DOM query selector

.toggleClass()

toggleClass to HTMLElement from DOM query selector

.css()

Css apply styles function. Example: {'color':'red','fontSize':'16px'}

.closest(pivot)

Get if element from DOM query selector have parent {pivot} @return {[basiq]}

.parent()

Get parent from element from DOM query selector @return {[basiq]}

.columnizr(numberOfCols, columnGap, columnRule)

CSS3 Columnizr function. Params -> numberOfCols: {int},columnGap:{css string style},columnRule:{css string style}

.resize( callback )

Detect resize event

basiq helpers

$.customEvent(name,data)

Generate custom events - Modern browsers. Params = name:{string}, data:{function}

$.ajax( url, type, data, async, arrayHeaders, responseType)

XHR helper @return {native Promise}

$.runLater(callback)

Force event added to the browser bucket event

basiq plugins

###basiq.logger (basic logging helper): $.log .err() - Error console log .warn() - warning console log info() - info console log

####Set up debug mode: $.log.debugmode:[debug mode] [debug mode] 0: Debug mode disable 1: Simple debug mode 2: Debug mode with trace

###basiq.browser (basic browser detect helper): $.browser .{ browser, version, name }