sociomantic-tsunami/microbe

Name: microbe

Owner: Sociomantic Tsunami

Description: A javascript library to aid in DOM manipulation, facilitate custom events, object observation, and data binding

Created: 2014-08-25 15:10:19.0

Updated: 2018-02-15 09:27:29.0

Pushed: 2016-10-17 10:11:32.0

Homepage: http://m.icro.be

Size: 13050

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

µ - Microbe - 0.5.2

Microbe build status Slack Status

(for modern browsers and ie10+)

microbe is a javascript library to aid in DOM manipulation aimed at speed and consistency as well as facilitating events, and data binding. It uses the micro character ( µ ) that is accessible in:

microbe aims to be modular and expandable. It?s separated into several modules:

microbes are always array-like for consistency and can be extended and merged very easily.

Don?t hesitate to file issues and features requests! Or change things yourself and send a pull request.

Usage

Example use

ll divs on the page
µDivs = µ( 'div' ) ;

reate a div with the class example--class
newDiv = µ( '<div.example--class>' );

ives the class example--class to each div
s.addClass( 'example--class' );

ll divs get a newDiv or a clone of newDiv inserted into the DOM after them
s.insertAfter( newDiv );

ets a custom event watch
s.on( 'toTheMoon', function( e )

console.log( e.detail );


mits a custom event to all elements in µDivs with a custom data packet.
riggers the event listener to show the sent data
s.emit( 'toTheMoon', { moon : 'close' } );

Dev Installation

Running the tests

From the command line:

run test

From the browser

://m.icro.be/tests
://localhost/microbe/tests

Available npm scripts

Contributing

We gladly accept and review any pull-requests. Feel free! :heart:

Otherwise, if you just want to talk, we are very easy to get a hold of!

This project adheres to the Contributor Covenant. By participating, you are expected to honor this code.

Microbe - Code of Conduct

Need to report something? report@m.icro.be

Change log

0.5.2
0.5.1
0.5.0
0.4.21
0.4.20 0.4.19 0.4.18 0.4.16

Older Changes

To keep the length of this file down, older changes are here


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.