Skip to content

hesambayat/spark-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark Javascript

Spark Javascript is a fast, micro size (256bytes) DOM custom event emitter library. Demo

Installing from Bower

$ bower install spark-javascript --save

Documentation

Usage

spark(element [object], event [string], data [object][optional]);

Example

document.body.addEventListener('say:hello', function(e){
	// print: Object {foo:"bar"}
	console.log(e.detail)
});

spark(document.body, 'say:hello', {foo:'bar'});

Running the test

$ npm start

... and then open a browser and go to http://localhost:8080

How to build

$ npm run build

Building details

  • Rename: gulp-rename
  • Js Minified and mangled: gulp-uglify
  • Preserve license comments: uglify-save-license

License MIT

Copyright (c) 2017 Hesam Bayat http://pixudio.com

About

Spark Javascript is a fast, micro size DOM custom event emitter library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published